[PATCH 01/21] Add a convenience method for new btrfs subvols and drop subvol size args.

David Lehman dlehman at redhat.com
Thu Aug 9 19:28:20 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 698c4fd..901c50b 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1181,6 +1181,7 @@ class Storage(object):
             fmt_kwargs["mountopts"] = "subvol=%s" % name
             kwargs.pop("metaDataLevel", None)
             kwargs.pop("dataLevel", None)
+            kwargs.pop("size", None)
         else:
             dev_class = BTRFSVolumeDevice
             # set up the volume label, using hostname if necessary
@@ -1211,6 +1212,10 @@ class Storage(object):
         device.format = getFormat("btrfs", **fmt_kwargs)
         return device
 
+    def newBTRFSSubVolume(self, *args, **kwargs):
+        kwargs["subvol"] = True
+        return self.newBTRFS(*args, **kwargs)
+
     def createDevice(self, device):
         """ Schedule creation of a device.
 
-- 
1.7.7.6



More information about the anaconda-patches mailing list