summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fsset.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 4a1851f4a..bab580e67 100644
--- a/fsset.py
+++ b/fsset.py
@@ -171,12 +171,23 @@ class reiserfsFileSystem(FileSystemType):
def __init__(self):
FileSystemType.__init__(self)
self.partedFileSystemType = parted.file_system_type_get("reiserfs")
- self.formattable = 0
+ self.formattable = 1
self.checked = 1
self.linuxnativefs = 1
self.name = "reiserfs"
+
+ # XXX probably wrong
self.maxSize = 4 * 1024 * 1024
- self.supported = 0
+
+
+ def formatDevice(self, entry, progress, message, chroot='/'):
+ devicePath = entry.device.setupDevice(chroot)
+
+ # XXX need to actually capture mkreiserfs output
+ rc = iutil.execWithRedirect ("/sbin/mkreiserfs",
+ ["mkreiserfs", devicePath],
+ stdout = None, stderr = None,
+ searchPath = 1)
fileSystemTypeRegister(reiserfsFileSystem())