[PATCH rhel6-branch master 1/2] Extra debugging output (#587442)

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

 



Add extra debugging info for LVM and MD RAID size calculations.

Related: rhbz#587442
---
 storage/devices.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 448fa44..3b277c9 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2014,6 +2014,7 @@ class LVMVolumeGroupDevice(DMDevice):
            lv.size > self.freeSpace:
             raise DeviceError("new lv is too large to fit in free space", self.name)
 
+        log.debug("Adding %s/%dMB to %s" % (lv.name, lv.size, self.name))
         self._lvs.append(lv)
 
     def _removeLogVol(self, lv):
@@ -2076,6 +2077,7 @@ class LVMVolumeGroupDevice(DMDevice):
         # sum up the sizes of the PVs and align to pesize
         size = 0
         for pv in self.pvs:
+            log.debug("PV size == %s" % pv.size)
             size += max(0, self.align(pv.size - pv.format.peStart))
 
         return size
@@ -2529,8 +2531,10 @@ class MDRaidArrayDevice(StorageDevice):
             elif self.level == mdraid.RAID10:
                 size = (self.memberDevices / 2.0) * smallestMemberSize
                 size -= size % self.chunkSize
+            log.debug("non-existant RAID %s size == %s" % (self.level, size))
         else:
             size = self.partedDevice.getSize()
+            log.debug("existing RAID %s size == %s" % (self.level, size))
 
         return size
 
-- 
1.6.6.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