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 > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 03-13-2009, 09:12 PM
David Lehman
 
Default Fix supportable attribute for cmdline-enabled fstypes.

---
storage/formats/fs.py | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 063ca16..f467852 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -550,11 +550,9 @@ class FS(DeviceFormat):
def migrationTarget(self):
return self._migrationTarget

- def supported(self):
+ @property
+ def utilsAvailable(self):
# we aren't checking for fsck because we shouldn't need it
- if not self._supported:
- return False
-
for prog in [self.mkfsProg, self.resizefsProg, self.labelfsProg]:
if not prog:
continue
@@ -565,6 +563,10 @@ class FS(DeviceFormat):

return True

+ def supported(self):
+ log_method_call(self, supported=self._supported)
+ return self._supported and self.utilsAvailable
+
@property
def mountable(self):
return self.type in kernel_filesystems
@@ -810,7 +812,7 @@ class BTRFS(FS):
""" Is this filesystem a supported type? """
supported = self._supported
if flags.cmdline.has_key("icantbelieveitsnotbtr"):
- supported = FS.supported(self)
+ supported = self.utilsAvailable

return supported

@@ -834,7 +836,7 @@ class GFS2(FS):
""" Is this filesystem a supported type? """
supported = self._supported
if flags.cmdline.has_key("gfs2"):
- supported = FS.supported(self)
+ supported = self.utilsAvailable

return supported

@@ -861,7 +863,7 @@ class JFS(FS):
""" Is this filesystem a supported type? """
supported = self._supported
if flags.cmdline.has_key("jfs"):
- supported = FS.supported(self)
+ supported = self.utilsAvailable

return supported

--
1.6.0.6

_______________________________________________
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:02 PM.

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