[rhel6-branch] storage: LUKSDevice takes req_grow after its slave (#589450).

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

 



without the patch following ks line is a problem:
part pv.hd --grow --size=1 --encrypted --passphrase=firsttest

this creates a VG on a LUKSDevice that has a PartitionDevice as its
"slave" device. the partition device has 'req_grow' set to true as to True
but not the luks device so adding any logical volume to the VG fails with
insufficient space.
---
 storage/devices.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 7e23b9e..ad4396c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1681,6 +1681,10 @@ class LUKSDevice(DMCryptDevice):
         self.teardown()
 
     @property
+    def req_grow(self):
+        return getattr(self.slave, "req_grow", None)
+
+    @property
     def slave(self):
         """ This device's backing device. """
         return self.parents[0]
-- 
1.6.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