Whamcloud - gitweb
tune2fs: replace the -r option with -E revision=<fs-rev>
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Nov 2024 18:03:38 +0000 (13:03 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Nov 2024 18:03:38 +0000 (13:03 -0500)
commit3fffe9dd6be5a5ed77755cf23c267b4afd1e7651
tree1375b82c80a71c39071616f551552c7be0b927db
parent45f2c24dca18debb50e2f150e4f3130d22e8ff12
tune2fs: replace the -r option with -E revision=<fs-rev>

Revision 0 file systems are needed for compatibility with pre-1995
Linux kernels (older that version 1.2).  Other for testing and
computer science archoelogy, there are no valid reasons for using this
feature.  Revision 0 file systms do not support any file system
extensions beyond what was present in Linux 1.0 kernels, and only
support 128 byte inode sizes, which means that the file system will
only support file dates after the Unix epoch in 2038.

Users who use -r 0 are almost certainly doing so by mistake (for
example, perhaps they meant -m 0 but they typed -r 0 instead).  As a
result they get a very badly cripped file system that won't support
SELinux, post-2038 dates, on-line resizing, etc.  So remove the -r
option and replace it with the extended option "revision", to prevent
users from falling into this trap.

Addresses-Debian-Bug: #1086603
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.8.in
misc/mke2fs.c