summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-01-12 18:16:51 -0500
committerJeremy Katz <katzj@redhat.com>2009-01-16 10:13:21 -0500
commit29410720cd481bb0be5a2a9d4f7157cb0a21bb2e (patch)
tree2dfa0156d19418d432882499797e1edd82636504 /fsset.py
parent0edbc7f500aac96bb868b5d49a4b2956607dffd1 (diff)
downloadanaconda-29410720cd481bb0be5a2a9d4f7157cb0a21bb2e.tar.gz
anaconda-29410720cd481bb0be5a2a9d4f7157cb0a21bb2e.tar.xz
anaconda-29410720cd481bb0be5a2a9d4f7157cb0a21bb2e.zip
Support mounting NTFS filesystems (#430084)
Based on a patch by Tom Callaway <tcallawa@redhat.com>, this adds supporting for using ntfs-3g (and thus fuse) to mount filesystems.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index 497ccfa98..3472b945b 100644
--- a/fsset.py
+++ b/fsset.py
@@ -128,6 +128,7 @@ class FileSystemType:
self.checked = 0
self.name = ""
self.linuxnativefs = 0
+ self.fusefs = 0
self.partedFileSystemType = None
self.partedPartitionFlags = []
self.maxSizeMB = 8 * 1024 * 1024
@@ -266,6 +267,8 @@ class FileSystemType:
def isMountable(self):
if not FileSystemType.kernelFilesystems:
self.readProcFilesystems()
+ if self.fusefs:
+ return FileSystemType.kernelFilesystems.has_key("fuse")
return FileSystemType.kernelFilesystems.has_key(self.getMountName()) or self.getName() == "auto"
@@ -982,6 +985,9 @@ class NTFSFileSystem(FileSystemType):
if len(filter(lambda d: os.path.exists("%s/ntfsresize" %(d,)),
os.environ["PATH"].split(":"))) > 0:
self.resizable = True
+ if len(filter(lambda d: os.path.exists("%s/mount.ntfs-3g" %(d,)),
+ os.environ["PATH"].split(":"))) > 0:
+ self.fusefs = 1
def resize(self, entry, size, progress, chroot='/'):
devicePath = entry.device.setupDevice(chroot)