[PATCH 1/4] Slightly improve currentSize for btrfs volumes.
David Lehman
dlehman at redhat.com
Fri Apr 5 17:11:05 UTC 2013
It's better than the size of the first member device. This was leading to
a max size smaller than the current size for multi-device btrfs
filesystems.
---
blivet/devices.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/blivet/devices.py b/blivet/devices.py
index a18dba7..f4f37e6 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3938,6 +3938,12 @@ class BTRFSDevice(StorageDevice):
raise RuntimeError("cannot directly set size of btrfs volume")
@property
+ def currentSize(self):
+ # at some point we'll want to make this a bit more realistic, but the
+ # btrfs tools don't provide much of this type of information
+ return self.size
+
+ @property
def status(self):
return not any([not d.status for d in self.parents])
--
1.8.1.4
More information about the anaconda-patches
mailing list