Re: [PATCH v3 02/12] Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups

2013-10-08 Thread David Sterba
On Mon, Oct 07, 2013 at 03:21:38PM +0800, Wang Shilong wrote: +static void print_parent_column(struct btrfs_qgroup *qgroup) +{ + struct btrfs_qgroup_list *list = NULL; + + list_for_each_entry(list, qgroup-qgroups, next_qgroup) { + printf(%llu/%llu, (list-qgroup)-qgroupid

[PATCH v3 02/12] Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups

2013-10-07 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com This patch introduces '-p' option to print the ID of the parent qgroups. You may use it like: btrfs qgroup show -p path For Example: qgroupid(2/0) / \ / \ /