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

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



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


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