Re: [PATCH storage] Keep VG size property non-negative

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

 



Looks good,

Regards,

Hans


On 03/27/2009 02:00 PM, Radek Vykydal wrote:
---
  storage/devices.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 2f1319e..ccf4f87 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1749,7 +1749,7 @@ class LVMVolumeGroupDevice(DMDevice):
          # sum up the sizes of the PVs and align to pesize
          size = 0
          for pv in self.pvs:
-            size += self.align(pv.size - pv.format.peStart)
+            size += max(0, self.align(pv.size - pv.format.peStart))

          return size


_______________________________________________
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