[PATCH] Handle case of not enough space in VG more gracefully. (#533797)

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

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index dff8804..a23efb3 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1510,7 +1510,11 @@ def growLVM(storage):
     """ Grow LVs according to the sizes of the PVs. """
     for vg in storage.vgs:
         total_free = vg.freeSpace
-        if not total_free:
+        if total_free < 0:
+            # by now we have allocated the PVs so if there isn't enough
+            # space in the VG we have a real problem
+            raise PartitioningError("not enough space for LVM requests")
+        elif not total_free:
             log.debug("vg %s has no free space" % vg.name)
             continue
 
-- 
1.6.0.6

_______________________________________________
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