Whamcloud - gitweb
debugfs: fix init_filesys help text
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Dec 2013 17:29:07 +0000 (12:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Dec 2013 17:39:54 +0000 (12:39 -0500)
The help text for debugfs' init_filesys command is incorrect; the
second parameter is the size of the filesystem in blocks, not the size
of an individual filesystem block.  There is in fact no way to set
that parameter.

Reported-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c

index 902ee66..f870129 100644 (file)
@@ -280,7 +280,7 @@ void do_init_filesys(int argc, char **argv)
        int             err;
 
        if (common_args_process(argc, argv, 3, 3, "initialize",
-                               "<device> <blocksize>", CHECK_FS_NOTOPEN))
+                               "<device> <blocks>", CHECK_FS_NOTOPEN))
                return;
 
        memset(&param, 0, sizeof(struct ext2_super_block));