diff options
author | Wang Shilong <wangsl-fnst@cn.fujitsu.com> | 2013-10-07 15:21:41 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:12 -0400 |
commit | ae26ff16f85aa6604a8b0d4c7065a3b02c1c78d1 (patch) | |
tree | 1c2a05d653a0cd4f1ca4d5ac446639d185e09e65 /cmds-qgroup.c | |
parent | 0944502866628d6b31fb628108c3811465940760 (diff) |
Btrfs-progs: introduce '-e' option to print max exclusive size of qgroups
This patch introduce '-e' option to print max exclusive size of qgroups.
You may use it like this:
btrfs qgroup -e <path>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r-- | cmds-qgroup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 213cbde0..fc9ad2f8 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -202,11 +202,12 @@ static int cmd_qgroup_destroy(int argc, char **argv) } static const char * const cmd_qgroup_show_usage[] = { - "btrfs qgroup show -pcr <path>", + "btrfs qgroup show -pcre <path>", "Show all subvolume quota groups.", "-p print parent qgroup id", "-c print child qgroup id", "-r print max referenced size of qgroup", + "-e print max exclusive size of qgroup", NULL }; @@ -221,7 +222,7 @@ static int cmd_qgroup_show(int argc, char **argv) optind = 1; while (1) { - c = getopt(argc, argv, "pcr"); + c = getopt(argc, argv, "pcre"); if (c < 0) break; switch (c) { @@ -237,6 +238,10 @@ static int cmd_qgroup_show(int argc, char **argv) btrfs_qgroup_setup_print_column( BTRFS_QGROUP_MAX_RFER); break; + case 'e': + btrfs_qgroup_setup_print_column( + BTRFS_QGROUP_MAX_EXCL); + break; default: usage(cmd_qgroup_show_usage); } |