OSDN Git Service

debugfs: update usage message for open and filefrag
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 9 Dec 2013 02:01:09 +0000 (21:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Dec 2013 02:06:40 +0000 (21:06 -0500)
The ussage message for the open and filefrag commands were missing
options; this commit fixes this.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
debugfs/filefrag.c

index 1fc76a0..902ee66 100644 (file)
@@ -201,7 +201,8 @@ void do_open_filesys(int argc, char **argv)
        return;
 
 print_usage:
-       fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] [-c] "
+       fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] "
+               "[-d image_filename] [-c] [-i] [-f] [-e] [-D] "
 #ifndef READ_ONLY
                "[-w] "
 #endif
index 7f28bc0..0adea40 100644 (file)
@@ -289,7 +289,7 @@ void do_filefrag(int argc, char *argv[])
 
        if (argc > optind+1) {
        print_usage:
-               com_err(0, 0, "Usage: filefrag [-dv] file");
+               com_err(0, 0, "Usage: filefrag [-dvr] file");
                return;
        }