Shu Ming has posted comments on this change.
Change subject: Remove local mount point if storage server connection fails
......................................................................
Patch Set 1: No score
If that directory was existing before, the code should fall in this path and exit, it will
never reach os.rmdir(self._getLocalPath()).
except OSError as e:
if e.errno != errno.EEXIST:
raise
The assumption here is the local path is a newly created directory. If the mount operation
failed, the newly crated directory should be cleaned.
--
To view, visit
http://gerrit.ovirt.org/4298
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic7aa1a47b7fa3577e83daa82fbad17fdc2ebd51f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Mark Wu <wudxw(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Mark Wu <wudxw(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Ryan Harper <ryanh(a)us.ibm.com>
Gerrit-Reviewer: Shu Ming <shuming(a)linux.vnet.ibm.com>