summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2012-11-18 10:13:20 +0800
committerDavid Sterba <dsterba@suse.cz>2013-01-26 12:32:31 +0100
commit7f04a61b6da5a1231454b07e3e37cc24601a76e4 (patch)
treeec2d768c010e5063447b1a96c7e150ddcf38ad40
parent69af4b4ee272ffcb1709aed47b08d7c41c6ac557 (diff)
btrfs-progs: update options in find-root.c
Remove the useless option "-v" and add the option "-o" in the description of usage. Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
-rw-r--r--find-root.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/find-root.c b/find-root.c
index 83f1592b..51e9a233 100644
--- a/find-root.c
+++ b/find-root.c
@@ -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,