(self)
| 121 | |
| 122 | |
| 123 | def probe(self): |
| 124 | # Verify NFS target and port |
| 125 | util._testHost(self.dconf['server'], NFSPORT, 'NFSTarget') |
| 126 | |
| 127 | self.validate_remotepath(True) |
| 128 | self.check_server() |
| 129 | |
| 130 | temppath = os.path.join(SR.MOUNT_BASE, PROBE_MOUNTPOINT) |
| 131 | |
| 132 | self.mount(temppath, self.dconf['serverpath']) |
| 133 | try: |
| 134 | return nfs.scan_srlist(temppath) |
| 135 | finally: |
| 136 | try: |
| 137 | nfs.unmount(temppath, True) |
| 138 | except: |
| 139 | pass |
| 140 | |
| 141 | |
| 142 | def detach(self, sr_uuid): |
no test coverage detected