Change in vdsm[master]: storage: remove unused method from mount.py

ishaby at redhat.com ishaby at redhat.com
Wed Apr 27 14:36:03 UTC 2016


Idan Shaby has uploaded a new change for review.

Change subject: storage: remove unused method from mount.py
......................................................................

storage: remove unused method from mount.py

This patch removes the unused method getMountFromDevice from mount.py.

Change-Id: I96aa562920eba6a923ba1b677e0ec05bd741e69a
Signed-off-by: Idan Shaby <ishaby at redhat.com>
---
M lib/vdsm/storage/mount.py
1 file changed, 0 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/05/56705/1

diff --git a/lib/vdsm/storage/mount.py b/lib/vdsm/storage/mount.py
index 654e3be..d40d86b 100644
--- a/lib/vdsm/storage/mount.py
+++ b/lib/vdsm/storage/mount.py
@@ -192,15 +192,6 @@
     raise OSError(errno.ENOENT, 'Mount target %s not found' % target)
 
 
-def getMountFromDevice(device):
-    device = normpath(device)
-    for rec in _iterMountRecords():
-        if rec.fs_spec == device:
-            return Mount(rec.fs_spec, rec.fs_file)
-
-    raise OSError(errno.ENOENT, 'device %s not mounted' % device)
-
-
 class Mount(object):
 
     log = logging.getLogger("storage.Mount")


-- 
To view, visit https://gerrit.ovirt.org/56705
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I96aa562920eba6a923ba1b677e0ec05bd741e69a
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Idan Shaby <ishaby at redhat.com>


More information about the vdsm-patches mailing list