[PATCH 2/2] Correctly handle reqs with max size no larger than base size. (#730009)

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

 



---
 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@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