[PATCH 2/4] Add support for the reiserfs filesystem (#504401)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As the bug indicates, the kernel module is still available.  I'm not
really interested in supporting installation to reiserfs, but I think we
should be able to recognize the filesystems in the partitioning UI as
well as let people shrink existing reiserfs filesystems to make room for
Fedora on more sane filesystems.

Detection works as is, but users have to pass 'reiserfs' on the command
line to enable installation to reiserfs volumes or to enable resize
support.
---
 scripts/upd-instroot  |    3 +++
 storage/formats/fs.py |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 88df66c..261a72b 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -390,6 +390,7 @@ sbin/clock
 sbin/consoletype
 sbin/cryptsetup
 sbin/debugfs
+sbin/debugreiserfs
 sbin/dhclient
 sbin/dhclient-script
 sbin/dhcp6c
@@ -425,6 +426,7 @@ sbin/mkfs.ext*
 sbin/mkfs.gfs2
 sbin/mkfs.jfs
 sbin/mkfs.msdos
+sbin/mkfs.reiserfs
 sbin/mkfs.vfat
 sbin/mkfs.xfs
 sbin/mkraid
@@ -438,6 +440,7 @@ sbin/pdisk
 sbin/probe
 sbin/reiserfsck
 sbin/reiserfstune
+sbin/resize_reiserfs
 sbin/resize2fs
 sbin/route
 sbin/setfiles
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 81e3cd0..55c7a2e 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1065,6 +1065,43 @@ class JFS(FS):
 register_device_format(JFS)
 
 
+class ReiserFS(FS):
+    """ reiserfs filesystem """
+    _type = "reiserfs"
+    _mkfs = "mkreiserfs"
+    _resizefs = "resize_reiserfs"
+    _modules = ["reiserfs"]
+    _defaultFormatOptions = ["-f", "-f"]
+    _defaultLabelOptions = ["-l"]
+    _maxLabelChars = 16
+    _maxSize = 16 * 1024 * 1024
+    _formattable = True
+    _linuxNative = True
+    _supported = False
+    _dump = True
+    _check = True
+    _packages = ["reiserfs-utils"]
+    _infofs = "debugreiserfs"
+    _defaultInfoOptions = []
+    _existingSizeFields = ["Count of blocks on the device:", "Blocksize:"]
+
+    @property
+    def supported(self):
+        """ Is this filesystem a supported type? """
+        supported = self._supported
+        if flags.cmdline.has_key("reiserfs"):
+            supported = self.utilsAvailable
+
+        return supported
+
+    @property
+    def resizeArgs(self):
+        argv = ["-s", "%dM" % (self.targetSize,), self.device]
+        return argv
+
+register_device_format(ReiserFS)
+
+
 class XFS(FS):
     """ XFS filesystem """
     _type = "xfs"
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux