[PATCH 06/15] btrfs volumes/subvolumes are created by devicelibs.btrfs.

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

 



---
 pyanaconda/storage/formats/fs.py |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index bb2dddc..3c3229f 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -1135,10 +1135,28 @@ class BTRFS(FS):
     _packages = ["btrfs-progs"]
     _minSize = 256
     _maxSize = 16 * 1024 * 1024
-    # FIXME parted needs to be thaught about btrfs so that we can set the
+    # FIXME parted needs to be taught about btrfs so that we can set the
     # partition table type correctly for btrfs partitions
     # partedSystem = fileSystemType["btrfs"]
 
+    def __init__(self, *args, **kwargs):
+        self.uuidSub = kwargs.pop("uuidSub", None)
+        super(BTRFS, self).__init__(*args, **kwargs)
+
+    def create(self, *args, **kwargs):
+        # filesystem creation is done in storage.devicelibs.btrfs.create_volume
+        pass
+
+    def setup(self, *args, **kwargs):
+        log_method_call(self, type=self.mountType, device=self.device,
+                        mountpoint=self.mountpoint)
+        if not self.mountpoint and "mountpoint" not in kwargs:
+            # Since btrfs vols have subvols the format setup is automatic.
+            # Don't try to mount it if there's no mountpoint.
+            return
+
+        return self.mount(*args, **kwargs)
+
     def _getFormatOptions(self, options=None):
         argv = []
         if options and isinstance(options, list):
-- 
1.7.3.4

_______________________________________________
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