FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 12-13-2011, 09:58 PM
David Lehman
 
Default btrfs volumes/subvolumes are created by devicelibs.btrfs.

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org