[PATCH 2/3] Remove unused getVG{Free,Used}Space methods.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devicelibs/lvm.py |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py
index 0dedc8c..452ccac 100644
--- a/storage/devicelibs/lvm.py
+++ b/storage/devicelibs/lvm.py
@@ -137,25 +137,6 @@ def safeLvmName(name):
 
     return tmp
 
-def getVGUsedSpace(vgreq, requests, diskset):
-    vgused = 0
-    for request in requests.requests:
-	if request.type == REQUEST_LV and request.volumeGroup == vgreq.uniqueID:
-	    size = int(request.getActualSize(requests, diskset))
-	    vgused = vgused + size
-
-
-    return vgused
-
-def getVGFreeSpace(vgreq, requests, diskset):
-    raise NotImplementedError
-    used = getVGUsedSpace(vgreq, requests, diskset)
-    log.debug("used space is %s" % (used,))
-    
-    total = vgreq.getActualSize(requests, diskset)
-    log.debug("actual space is %s" % (total,))
-    return total - used
-
 def clampSize(size, pesize, roundup=None):
     if roundup:
         round = math.ceil
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux