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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-18-2009, 03:23 AM
Jesse Keating
 
Default Indicate filesystem is mountable if we have a mount command.

On Tue, 2009-03-17 at 17:06 -1000, David Cantrell wrote:
> For NTFS, we don't have the name 'ntfs' in /proc/filesystems. It
> uses fuseblk. Return True for mountable if the filesystem is
> listed in /proc/filesystems -or- if we have a mount command for
> that filesystem type.
> ---
> storage/formats/fs.py | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/storage/formats/fs.py b/storage/formats/fs.py
> index a32c65b..71160bb 100644
> --- a/storage/formats/fs.py
> +++ b/storage/formats/fs.py
> @@ -594,7 +594,8 @@ class FS(DeviceFormat):
>
> @property
> def mountable(self):
> - return self.type in kernel_filesystems
> + return (self.type in kernel_filesystems) or
> + (os.access("/sbin/mount.%s" % (self.type,), os.X_OK))
>
> @property
> def defaultFormatOptions(self):

Looks good, but are we always going to have a kernel module (loaded) for
all the possible mount commands we have, or will that get caught later
if we just can't mount it?

--
Jesse Keating
Fedora -- Freedom˛ is a feature!
identi.ca: http://identi.ca/jkeating
_______________________________________________
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:23 AM.

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