[PATCH 5/5] Pass RAID level to btrfs volume constructor. (#866101)
David Lehman
dlehman at redhat.com
Mon Oct 29 20:30:15 UTC 2012
---
pyanaconda/storage/__init__.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index ff930cf..687d834 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -3279,6 +3279,11 @@ class BTRFSFactory(DeviceFactory):
encrypted)
self.raid_level = raid_level or "single"
+ def new_container(self, *args, **kwargs):
+ """ Return the newly created container for this device. """
+ kwargs["dataLevel"] = self.raid_level
+ return getattr(self.storage, self.new_container_attr)(*args, **kwargs)
+
@property
def device_size(self):
# until we get/need something better
--
1.7.7.6
More information about the anaconda-patches
mailing list