diff options
author | Wang Shilong <wangsl-fnst@cn.fujitsu.com> | 2013-10-07 15:21:40 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:12 -0400 |
commit | 0944502866628d6b31fb628108c3811465940760 (patch) | |
tree | 0f7341924c9704059172ee241c31b7a0933d2b4a /qgroup.c | |
parent | 14b6c32037b19a860132e4e37c09d2d9705ee500 (diff) |
Btrfs-progs: introduce '-r' option to print max referenced size of qgroups
This patch introduces '-r' option to print max referenced size of qgroups.
You may use it like:
btrfs qgroup show -r <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 'qgroup.c')
-rw-r--r-- | qgroup.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -87,6 +87,10 @@ struct { .column_name = "Excl", .need_print = 1, }, + { .name = "max_rfer", + .column_name = "Max_rfer", + .need_print = 0, + }, { .name = "parent", .column_name = "Parent", @@ -166,6 +170,9 @@ static void print_qgroup_column(struct btrfs_qgroup *qgroup, case BTRFS_QGROUP_PARENT: print_parent_column(qgroup); break; + case BTRFS_QGROUP_MAX_RFER: + printf("%llu", qgroup->max_rfer); + break; case BTRFS_QGROUP_CHILD: print_child_column(qgroup); break; |