From 0944502866628d6b31fb628108c3811465940760 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Mon, 7 Oct 2013 15:21:40 +0800 Subject: 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 Signed-off-by: Wang Shilong Signed-off-by: Miao Xie Signed-off-by: David Sterba Signed-off-by: Chris Mason --- qgroup.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qgroup.c') diff --git a/qgroup.c b/qgroup.c index 1592dd49..f9eb52dc 100644 --- a/qgroup.c +++ b/qgroup.c @@ -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; -- cgit v1.2.3