ChangeLog, dumpe2fs.8.in, dumpe2fs.c, mke2fs.8.in, mke2fs.c, partinfo.c:
partinfo.c: Fix minor compilation bugs pointed out by Yann Dirson.
mke2fs.c: Don't turn on sparse superblocks by default on pre-2.2 kernels.
mke2fs.8.in: Add the possible valid block sizes for mke2fs. Document
the -n flag, and the new defaults for the -s flag.
dumpe2fs.c, dumpe2fs.8.in: Add new options -f (force) and -h (header-only).
mke2fs.c (PRS): Fix logic for turning on/off the sparse superblock option.
Many files:
Updated copyright statements to reflect the GPL with permission of the
original authors.
diff --git a/misc/mke2fs.8.in b/misc/mke2fs.8.in
index 4e0a3d9..62725e4 100644
--- a/misc/mke2fs.8.in
+++ b/misc/mke2fs.8.in
@@ -33,6 +33,9 @@
.I number-of-inodes
]
[
+.B -n
+]
+[
.B \-m
.I reserved-blocks-percentage
]
@@ -95,7 +98,8 @@
.SH OPTIONS
.TP
.I -b block-size
-Specify the size of blocks in bytes.
+Specify the size of blocks in bytes. Valid block size vales are 1024,
+2048 and 4096 bytes per block.
.TP
.I -c
Check the device for bad blocks before creating the file system, using a
@@ -117,6 +121,10 @@
filesystem after it is created, so be careful decided the correct
value for this parameter.
.TP
+.I -n
+causes mke2fs to not actually create a filesystem, but display what it
+would do if it were to create a filesystem.
+.TP
.I -N number-of-inodes
overrides the default calculation of the number of inodes that should be
reserved for the filesystem (which is based on the number of blocks and
@@ -151,11 +159,13 @@
.I -s sparse-super-flag
If sparse-super-flag is 1, then turn on the sparse superblock flag.
If 0, then turn off the sparse superblock flag. (Currently, the sparse
-superblock flag defaults to off.)
+superblock flag is off by default if the kernel version is less than
+2.2; otherwise it defaults to on.)
.B Warning:
-The Linux 2.0 kernel does not properly support this feature. Neither do
-all Linux 2.1 kernels; please don't use this unless you know what you're
-doing!
+The Linux 2.0 kernel (and some Linux 2.1 kernel) does not properly
+support sparse superblocks. Filesystems that may need to mounted
+on pre-2.2 kernels should not be created with the sparse superblocks
+feature.
.TP
.I -v
Verbose execution.