FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Masters Of The Universe

 
 
LinkBack Thread Tools
 
Old 02-11-2009, 11:54 PM
David Cantrell
 
Default Remove unused printNewRequestsCyl() function.

I am tired of updating code that's not even in use anymore.
---
autopart.py | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/autopart.py b/autopart.py
index b531daf..3c7d26f 100644
--- a/autopart.py
+++ b/autopart.py
@@ -130,17 +130,6 @@ def bootAlphaCheckRequirements(part):

return PARTITION_SUCCESS

-def printNewRequestsCyl(diskset, newRequest):
- for req in newRequest.requests:
- if req.type != REQUEST_NEW:
- continue
-
- for drive in req.drive:
- part = diskset.disks[drive].getPartitionByPath(req.device)
-## print(req)
-## print("Start Cyl:%s End Cyl: %s" % (part.geometry.device.startSectorToCylinder(part.g eometry.start),
-## part.geometry.device.endSectorToCylinder(part.geom etry.end),))
-
def printFreespaceitem(part):
return part.getDeviceNodeName(), part.geometry.start, part.geometry.end, part.getSize(unit="MB")

@@ -652,12 +641,6 @@ def growParts(diskset, requests, newParts):
####
newRequest = requests.copy()

-## print("new requests")
-## printNewRequestsCyl(diskset, requests)
-## print("orig requests")
-## printNewRequestsCyl(diskset, newRequest)
-## print("


")
-
(free, freeSize, largestFree) = getFreeSpace(diskset)

# find growable partitions
@@ -677,10 +660,6 @@ def growParts(diskset, requests, newParts):
# there aren't any drives with growable partitions, this is easy!
if not growable.keys():
return
-
-## print("new requests before looping")
-## printNewRequestsCyl(diskset, requests)
-## print("


")

# loop over all drives, grow all growable partitions one at a time
grownList = []
@@ -831,8 +810,6 @@ def growParts(diskset, requests, newParts):
inner_iter = 0
ret = PARTITION_SUCCESS # request succeeded with initial size
while (max != min) and (lastDiff != diff) and (inner_iter < 2000):
-## printNewRequestsCyl(diskset, newRequest)
-
# XXX need to request in sectors preferably, more accurate
## print("trying cur=%s" % cur)
request.requestSize = (cur*sectorSize)/1024.0/1024.0
--
1.6.1.3

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

Thread Tools




All times are GMT. The time now is 03:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org