From: Wang Sheng-Hui <shhuiw@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 1/2] btrfs-progs: update options in find-root.c
Date: Sun, 18 Nov 2012 10:13:20 +0800 [thread overview]
Message-ID: <50A84440.9030905@gmail.com> (raw)
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 | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/find-root.c b/find-root.c
index c0f38b8..2fb40e5 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,
--
1.7.5.4
reply other threads:[~2012-11-18 2:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50A84440.9030905@gmail.com \
--to=shhuiw@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.