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 > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 08-12-2011, 10:42 PM
David Lehman
 
Default Correctly handle reqs with max size no larger than base size. (#730009)

---
pyanaconda/storage/partitioning.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 03b04b7..e4a9c41 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -1320,6 +1320,9 @@ class PartitionRequest(Request):
if limits:
max_sectors = min(limits)
self.max_growth = max_sectors - self.base
+ if self.max_growth <= 0:
+ # max size is less than or equal to base, so we're done
+ self.done = True


class LVRequest(Request):
@@ -1345,6 +1348,9 @@ class LVRequest(Request):
if limits:
max_units = min(limits)
self.max_growth = max_units - self.base
+ if self.max_growth <= 0:
+ # max size is less than or equal to base, so we're done
+ self.done = True


class Chunk(object):
--
1.7.3.4

_______________________________________________
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 09:32 PM.

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