Change in vdsm[master]: Introduce getMountPoint for NfsStorageDomain
deepakcs at linux.vnet.ibm.com
deepakcs at linux.vnet.ibm.com
Thu Sep 20 12:26:37 UTC 2012
Deepak C Shetty has uploaded a new change for review.
Change subject: Introduce getMountPoint for NfsStorageDomain
......................................................................
Introduce getMountPoint for NfsStorageDomain
Move the code to generate the mount point into a seperate
function, so that classes reusing NfsStorageDomain can
override the function to present their own mount point path.
Change-Id: I80f98eddcc31c1f01f42af838ecc483abb955f41
Signed-off-by: Deepak C Shetty <deepakcs at linux.vnet.ibm.com>
---
M vdsm/storage/nfsSD.py
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/85/8085/1
diff --git a/vdsm/storage/nfsSD.py b/vdsm/storage/nfsSD.py
index d84fee6..6b53208 100644
--- a/vdsm/storage/nfsSD.py
+++ b/vdsm/storage/nfsSD.py
@@ -71,8 +71,7 @@
# Create local path
mntPath = fileUtils.transformPath(remotePath)
- mntPoint = os.path.join(cls.storage_repository,
- sd.DOMAIN_MNT_POINT, mntPath)
+ mntPoint = cls.getMountPoint(mntPath)
cls._preCreateValidation(sdUUID, mntPoint, remotePath, version)
@@ -94,6 +93,11 @@
return fsd
+ @classmethod
+ def getMountPoint(cls, mountPath):
+ return os.path.join(cls.storage_repository,
+ sd.DOMAIN_MNT_POINT, mountPath)
+
def selftest(self):
"""
Run internal self test
--
To view, visit http://gerrit.ovirt.org/8085
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80f98eddcc31c1f01f42af838ecc483abb955f41
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Deepak C Shetty <deepakcs at linux.vnet.ibm.com>
More information about the vdsm-patches
mailing list