btrfs-progs: update options in find-root.c
authorWang Sheng-Hui <shhuiw@gmail.com>
Sun, 18 Nov 2012 02:13:20 +0000 (10:13 +0800)
committerDavid Sterba <dsterba@suse.cz>
Sat, 26 Jan 2013 11:32:31 +0000 (12:32 +0100)
Remove the useless option "-v" and add the option "-o" in
the description of usage.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
find-root.c

index 83f1592..51e9a23 100644 (file)
 #include "utils.h"
 #include "crc32c.h"
 
-static int verbose = 0;
 static u16 csum_size = 0;
 static u64 search_objectid = BTRFS_ROOT_TREE_OBJECTID;
 
 static void usage()
 {
-       fprintf(stderr, "Usage: find-roots [-v] <device>\n");
+       fprintf(stderr, "Usage: find-roots [-o search_objectid] <device>\n");
 }
 
 int csum_block(void *buf, u32 len)
@@ -414,11 +413,8 @@ int main(int argc, char **argv)
        int opt;
        int ret;
 
-       while ((opt = getopt(argc, argv, "vo:")) != -1) {
+       while ((opt = getopt(argc, argv, "o:")) != -1) {
                switch(opt) {
-                       case 'v':
-                               verbose++;
-                               break;
                        case 'o':
                                errno = 0;
                                search_objectid = (u64)strtoll(optarg, NULL,