Joel Granados Moreno wrote:
We need to account for PV metadata in the LV grow functions. This patch
avoids the missing one PE error message.
---
autopart.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/autopart.py b/autopart.py
index 2c6f5e8..2938d9b 100644
--- a/autopart.py
+++ b/autopart.py
@@ -534,7 +534,7 @@ def growLogicalVolumes(diskset, requests):
log("considering %s, start size = %s",req.logicalVolumeName, req.getStartSize())
# get remaining free space
- vgfree = lvm.getVGFreeSpace(vgreq, requests, diskset)
+ vgfree = lvm.getVGFreeSpace(vgreq, requests, diskset) - (2*vgreq.pesize)
# print "vgfree = ", vgfree
if DEBUG_LVM_GROW:
I'm ok with the patch.
Radek
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list