btrfs-progs: update usage description for debug-tree.c
authorWang Sheng-Hui <shhuiw@gmail.com>
Wed, 14 Nov 2012 07:46:21 +0000 (15:46 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 17 Jan 2013 17:27:55 +0000 (18:27 +0100)
There are more options than "-e" only.
Update the description for the usage.

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

index 94ffd8e..f6bd5d8 100644 (file)
 
 static int print_usage(void)
 {
-       fprintf(stderr, "usage: debug-tree [ -e ] device\n");
+       fprintf(stderr, "usage: btrfs-debug-tree [ -e ] [ -d ] [ -r ] [ -R ]\n");
+       fprintf(stderr, "                        [-b block_num ] device\n");
+       fprintf(stderr, "\t-e : print detailed extents info\n");
+       fprintf(stderr, "\t-d : print info of btrfs device and root tree dirs"
+                    " only\n");
+       fprintf(stderr, "\t-r : print info of roots only\n");
+       fprintf(stderr, "\t-R : print info of roots and root backups\n");
+       fprintf(stderr, "\t-b block_num : print info of the specified block"
+                    " only\n");
        fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
        exit(1);
 }