[Ocfs2-tools-devel] [PATCH] fsck.ocfs2 - include -D in man page

Sunil Mushran sunil.mushran at oracle.com
Mon Feb 8 10:55:49 PST 2010


Goldwyn Rodrigues wrote:
> diff --git a/fsck.ocfs2/fsck.ocfs2.8.in b/fsck.ocfs2/fsck.ocfs2.8.in
> index f93c15a..bbb4523 100644
> --- a/fsck.ocfs2/fsck.ocfs2.8.in
> +++ b/fsck.ocfs2/fsck.ocfs2.8.in
> @@ -23,6 +23,12 @@ The \fIblock size\fR, specified in bytes, can range from 512 to 4096.
>  A value of 0, the default, is used to indicate that the blocksize should be automatically detected.
>  
>  .TP
> +\fB\-D\fR
> +Compress directory entries in directories for performance. This option 
> +coalsces the directory entries in a directory, and the holes are 
> +pushed to the end of the block. 
> +
> +.TP
>  \fB\-f\fR
>  Force checking even if the file system is clean.

IMO, compress is not accurate. It just coalescing the entries in
the dirblock. It is not removing any dir blocks. A better word would
be optimize as they have in fsck.ext3's manpage.

"Optimize directories in filesystem. This option causes fsck.ocfs2 to
coalesce the directory entries in order to improve the filesystem
performance."

We can tweak this further when index dir support is added. The current
patch does not force rebuild if -D is provided. Not a big deal. Should
be easy to add later.



More information about the Ocfs2-tools-devel mailing list