Skip to contentSkip to conversation

btrfs-progs: update options in find-root.c

PATCH New Wang Sheng-Hui 1 participant 1 message Nov 18, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 btrfs-progs: update options in find-root.c

Remove the useless option "-v" and add the option "-o" in the description of usage.

---
 find-root.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
find-root.c +2 -6
index c0f38b8..2fb40e5 100644
@@ -35,13 +35,12 @@
 #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,
Signature · 1 line
1.7.5.4