summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2016-09-15 15:15:50 -0400
committerDavid Sterba <dsterba@suse.com>2016-09-21 11:50:35 +0200
commitc68759eaa6fbb14529a39719be3a9fb5f7014098 (patch)
tree643dd145f23fa0b26816ff7868857a98f9f5ef76 /cmds-subvolume.c
parent7f26e64ddd17e04c0d8d7ce5cffdc9d1dbdfadfc (diff)
btrfs-progs: subvol delete: add missing verbose option
There was already the logic for verbose output, but the flag parsing did not include it. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index e7ef67d3..c6395535 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -245,6 +245,7 @@ static const char * const cmd_subvol_delete_usage[] = {
"",
"-c|--commit-after wait for transaction commit at the end of the operation",
"-C|--commit-each wait for transaction commit after deleting each subvolume",
+ "-v|--verbose verbose output of operations",
NULL
};
@@ -267,10 +268,11 @@ static int cmd_subvol_delete(int argc, char **argv)
static const struct option long_options[] = {
{"commit-after", no_argument, NULL, 'c'}, /* commit mode 1 */
{"commit-each", no_argument, NULL, 'C'}, /* commit mode 2 */
+ {"verbose", no_argument, NULL, 'v'},
{NULL, 0, NULL, 0}
};
- c = getopt_long(argc, argv, "cC", long_options, NULL);
+ c = getopt_long(argc, argv, "cCv", long_options, NULL);
if (c < 0)
break;