summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/formats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-11-21 09:29:51 -0600
committerDavid Lehman <dlehman@redhat.com>2011-12-19 11:19:56 -0600
commitc9971cdb398f0ff4f264c82d6ec1aff932c20b4f (patch)
treede6607c922f9c8ef7302c3f3014869156fea4fe9 /pyanaconda/storage/formats
parent186aef0417d5e4fb100d2a6dfe03505b36750bb0 (diff)
downloadanaconda-c9971cdb398f0ff4f264c82d6ec1aff932c20b4f.tar.gz
anaconda-c9971cdb398f0ff4f264c82d6ec1aff932c20b4f.tar.xz
anaconda-c9971cdb398f0ff4f264c82d6ec1aff932c20b4f.zip
btrfs volumes/subvolumes are created by devicelibs.btrfs.
Diffstat (limited to 'pyanaconda/storage/formats')
-rw-r--r--pyanaconda/storage/formats/fs.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index bb2dddc23..3c3229f13 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):