Whamcloud - gitweb
Expand discussion of the -D option in e2fsck's man page
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jan 2008 05:17:57 +0000 (00:17 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jan 2008 05:22:46 +0000 (00:22 -0500)
Add an explanation of how e2fsck might decide to optimize a few
directories even without the -D option being specified.

Addresses-Debian-Bug: #441872

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/e2fsck.8.in

index c1e40c9..849c7ad 100644 (file)
@@ -154,6 +154,19 @@ try to optimize all directories, either by reindexing them if the
 filesystem supports directory indexing,  or by sorting and compressing
 directories for smaller directories, or for filesystems using
 traditional linear directories.
+.IP
+Even without the
+.B \-D
+option,
+.B e2fsck
+may sometimes optimize a few directories --- for example, if
+directory indexing is enabled and a directory is not indexed and would
+benefit from being indexed, or if the index structures are corrupted
+and need to be rebuilt.  The
+.B \-D
+option forces all directories in the filesystem to be optimized.  This can
+sometimes make them a little smaller and slightly faster to search, but
+in practice, you should rarely need to use this option.
 .TP
 .BI \-E " extended_options"
 Set e2fsck extended options.  Extended options are comma