Lee Yarwood has uploaded a new change for review.
Change subject: lvm: Make the isActiveLV() method public. ......................................................................
lvm: Make the isActiveLV() method public.
This change makes the private isActiveLV() method public for use in the blockSD layer.
Change-Id: I670fe3969b88819891c64ea3ac487b070618aaec Signed-off-by: Lee Yarwood lyarwood@redhat.com --- M vdsm/storage/lvm.py 1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/86/21386/1
diff --git a/vdsm/storage/lvm.py b/vdsm/storage/lvm.py index 112f1c0..76184b8 100644 --- a/vdsm/storage/lvm.py +++ b/vdsm/storage/lvm.py @@ -1221,10 +1221,8 @@ return os.path.basename(os.readlink(lvp))
-def _isLVActive(vgName, lvName): +def isLVActive(vgName, lvName): """Active volumes have a mp link. - - This function should not be used out of this module. """ return os.path.exists(lvPath(vgName, lvName))