linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] btrfs-progs: update usage description for debug-tree.c
@ 2012-11-14  7:46 Wang Sheng-Hui
  0 siblings, 0 replies; only message in thread
From: Wang Sheng-Hui @ 2012-11-14  7:46 UTC (permalink / raw)
  To: chris.mason, linux-btrfs

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 |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/debug-tree.c b/debug-tree.c
index 94ffd8e..f6bd5d8 100644
--- a/debug-tree.c
+++ b/debug-tree.c
@@ -30,7 +30,15 @@

 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);
 }
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-14  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14  7:46 [PATCH 1/2] btrfs-progs: update usage description for debug-tree.c Wang Sheng-Hui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).