From: David Sterba <dsterba@suse.cz>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.cz>
Subject: [PATCH] btrfs-progs: check, add verbosity level option
Date: Mon, 6 Oct 2014 18:48:58 +0200 [thread overview]
Message-ID: <1412614138-32008-1-git-send-email-dsterba@suse.cz> (raw)
In-Reply-To: <1412172669-1975-1-git-send-email-jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
---
Documentation/btrfs-check.txt | 2 ++
cmds-check.c | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Documentation/btrfs-check.txt b/Documentation/btrfs-check.txt
index 8a8073f52fad..589466e0a3f3 100644
--- a/Documentation/btrfs-check.txt
+++ b/Documentation/btrfs-check.txt
@@ -32,6 +32,8 @@ create a new CRC tree.
create a new extent tree.
--check-data-csum::
verify checkums of data blocks.
+--verbose::
+increase verbosity level.
EXIT STATUS
-----------
diff --git a/cmds-check.c b/cmds-check.c
index af1940a3fe38..6f3dc77171c4 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -55,6 +55,7 @@ static int repair = 0;
static int no_holes = 0;
static int init_extent_tree = 0;
static int check_data_csum = 0;
+static int verbose = 0;
struct extent_backref {
struct list_head list;
@@ -6801,6 +6802,7 @@ const char * const cmd_check_usage[] = {
"--check-data-csum verify checkums of data blocks",
"--qgroup-report print a report on qgroup consistency",
"--subvol-extents print subvolume extents and sharing state",
+ "--verbose increase verbosity level",
NULL
};
@@ -6822,7 +6824,7 @@ int cmd_check(int argc, char **argv)
while(1) {
int c;
- c = getopt_long(argc, argv, "as:b", long_options,
+ c = getopt_long(argc, argv, "as:bv", long_options,
&option_index);
if (c < 0)
break;
@@ -6849,6 +6851,9 @@ int cmd_check(int argc, char **argv)
case 'E':
subvolid = arg_strtou64(optarg);
break;
+ case 'v':
+ verbose++;
+ break;
case '?':
case 'h':
usage(cmd_check_usage);
--
2.1.1
prev parent reply other threads:[~2014-10-06 16:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 14:11 [PATCH] Btrfs-progs: make free space cache less noisy Josef Bacik
2014-10-06 16:42 ` David Sterba
2014-10-06 17:08 ` David Sterba
2014-10-06 16:48 ` David Sterba [this message]
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=1412614138-32008-1-git-send-email-dsterba@suse.cz \
--to=dsterba@suse.cz \
--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 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).