[PATCH] Keep track of pvcount for non existing vgs (#593871)

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

 



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

diff --git a/storage/devices.py b/storage/devices.py
index 93b90ec..8985d9e 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1769,6 +1769,9 @@ class LVMVolumeGroupDevice(DMDevice):
         if not self.peSize:
             self.peSize = 32.0   # MB
 
+        if not self.exists:
+            self.pvCount = len(self.parents)
+
         #self.probe()
 
     def __str__(self):
@@ -2032,6 +2035,9 @@ class LVMVolumeGroupDevice(DMDevice):
 
         self.parents.append(pv)
         pv.addChild()
+        
+        # and update our pv count
+        self.pvCount = len(self.parents)
 
     def _removePV(self, pv):
         """ Remove an PV from this VG. """
-- 
1.7.0.1

_______________________________________________
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