Skip to content

enhance btrfs qgroup show command

Miao Xie linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Btrfs-progs: restructure show_qgroupscmds-qgroup.c ctree.h qgroup.c +1 more+530 -950 replies
2/9Btrfs-progs: introduces '-p' option to print the ID of the parent qgroupscmds-qgroup.c qgroup.c qgroup.h+44 -30 replies
3/9Btrfs-progs: introduces '-c' option to print the ID of the child qgroupscmds-qgroup.c qgroup.c qgroup.h+30 -20 replies
4/9Btrfs-progs: introduce '-l' option to print max referenced size of qgroupscmds-qgroup.c qgroup.c qgroup.h+15 -20 replies
5/9Btrfs-progs: introduce '-e' option to print max exclusive size of qgroupscmds-qgroup.c qgroup.c qgroup.h+16 -20 replies
6/9Btrfs-progs: list all qgroups impact given path(include ancestral qgroups)cmds-qgroup.c qgroup.c qgroup.h+281 -100 replies
7/9Btrfs-progs: list all qgroups impact given path(exclude ancestral qgroups)cmds-qgroup.c qgroup.c qgroup.h+28 -30 replies
8/9Btrfs-progs: enhance btrfs qgroup show to sort qgroupscmds-qgroup.c qgroup.c qgroup.h+301 -120 replies
9/9Btrfs-progs: enhance btrfs qgroup to print the result as a tablecmds-qgroup.c qgroup.c qgroup.h+191 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] enhance btrfs qgroup show command

The patchset enhanced btrfs qgroup show command.

Firstly, we restructure show_qgroups, make it easy to add new features.

And then we add '-p' '-c', '-l',and '-e' options to print the parent qgroup id, child qgroup id, max referenced size and max exclusive size of qgroup respectively, add '-F' and '-f' option to list qgroups that impact the given path.

Besides that, the users may want to sort qgroups according to some items. For this case, we introduce '--sort' option. With this option, we can sort the qgroup by qgroupid, rfer, excl, max_rfer and max_excl.

And finally, Since there are so many columns can be output, the users may be confused about the output result, so i add '-t' option to print the result as a table.

We can pull this patchset from the URL

git://github.com/miaoxie/btrfs-progs.git qgroup

Thanks
Miao
---
Wang Shilong (9):
Btrfs-progs: restructure show_qgroups
Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups
Btrfs-progs: introduces '-c' option to print the ID of the child qgroups
Btrfs-progs: introduce '-l' option to print max referenced size of qgroups
Btrfs-progs: introduce '-e' option to print max exclusive size of qgroups
Btrfs-progs: list all qgroups impact given path(include ancestral qgroups)
Btrfs-progs: list all qgroups impact given path(exclude ancestral qgroups)
Btrfs-progs: enhance btrfs qgroup show to sort qgroups
Btrfs-progs: enhance btrfs qgroup to print the result as a table

 cmds-qgroup.c |  198 +++++-----
 ctree.h       |   11 +
 qgroup.c      | 1216 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 qgroup.h      |   71 ++++
 4 files changed, 1396 insertions(+), 100 deletions(-)