[PATCH 3/5] Correctly handle reqs with max size no larger than base size.

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

 



Related: rhbz#744129

(ported e1c654bb0e54f6f5b8d4d3c63bb5a6cacd2f3ff7 from master)
The original patch resolved #730009.
---
 storage/partitioning.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index b9ab4c2..1923596 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1257,6 +1257,9 @@ class Request(object):
             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
 
     @property
     def growable(self):
-- 
1.7.4.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