linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/12] enhance btrfs qgroup show command
@ 2013-10-07  7:21 Wang Shilong
  2013-10-07  7:21 ` [PATCH v3 01/12] Btrfs-progs: restructure show_qgroups Wang Shilong
                   ` (11 more replies)
  0 siblings, 12 replies; 22+ messages in thread
From: Wang Shilong @ 2013-10-07  7:21 UTC (permalink / raw)
  To: linux-btrfs; +Cc: dsterba

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', '-r',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.

Notice, we force to print result as a table(as david suggest this dosen't matter
for now), and with option '--block-size', user can control to print result,for example,
k,K,m,M,etc.What's more '-h' gives a short cut to allow people to print result in
human readable format size.

You can pull this patchset from the URL:
	git://github.com/wangshilong/Btrfs-progs.git qgroup_v2

This patchset is rebased on david's intergration-20130924.

Changelog:
v2->v3:
	mainly address comments from david.
	1)print result as table in default.
	2)add '--block-size' option
	3)add '-h' option to print size in human readable format.
	4)replace '-l' with '-r' to print max referenced size.
	5)some codes cleanups.
v1->v2:
	rebase the patchset on david's integration-20130920

Wang Shilong (12):
  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 '-r' 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
  Btrfs-progs: add '--block-size' option to control print result
  Btrfs-progs: make pretty_size_snprintf() return len
  Btrfs-progs: add '-h' options to print sizes in human readable format

 cmds-qgroup.c |  197 ++++-----
 ctree.h       |   11 +
 qgroup.c      | 1286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 qgroup.h      |   73 ++++
 utils.c       |   59 ++-
 utils.h       |    6 +-
 6 files changed, 1532 insertions(+), 100 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-10-08 17:10 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-07  7:21 [PATCH v3 00/12] enhance btrfs qgroup show command Wang Shilong
2013-10-07  7:21 ` [PATCH v3 01/12] Btrfs-progs: restructure show_qgroups Wang Shilong
2013-10-07  7:21 ` [PATCH v3 02/12] Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups Wang Shilong
2013-10-08 15:06   ` David Sterba
2013-10-07  7:21 ` [PATCH v3 03/12] Btrfs-progs: introduces '-c' option to print the ID of the child qgroups Wang Shilong
2013-10-08 15:08   ` David Sterba
2013-10-07  7:21 ` [PATCH v3 04/12] Btrfs-progs: introduce '-r' option to print max referenced size of qgroups Wang Shilong
2013-10-07  7:21 ` [PATCH v3 05/12] Btrfs-progs: introduce '-e' option to print max exclusive " Wang Shilong
2013-10-07  7:21 ` [PATCH v3 06/12] Btrfs-progs: list all qgroups impact given path(include ancestral qgroups) Wang Shilong
2013-10-07  7:21 ` [PATCH v3 07/12] Btrfs-progs: list all qgroups impact given path(exclude " Wang Shilong
2013-10-07  7:21 ` [PATCH v3 08/12] Btrfs-progs: enhance btrfs qgroup show to sort qgroups Wang Shilong
2013-10-07  7:21 ` [PATCH v3 09/12] Btrfs-progs: enhance btrfs qgroup to print the result as a table Wang Shilong
2013-10-07  7:21 ` [PATCH v3 10/12] Btrfs-progs: add '--block-size' option to control print result Wang Shilong
2013-10-08 15:34   ` David Sterba
2013-10-08 16:27     ` Shilong Wang
2013-10-08 16:34       ` Shilong Wang
2013-10-08 16:34       ` David Sterba
2013-10-08 16:54     ` Shilong Wang
2013-10-08 17:01       ` Hugo Mills
2013-10-08 17:10         ` Hugo Mills
2013-10-07  7:21 ` [PATCH v3 11/12] Btrfs-progs: make pretty_size_snprintf() return len Wang Shilong
2013-10-07  7:21 ` [PATCH v3 12/12] Btrfs-progs: add '-h' options to print sizes in human readable format Wang Shilong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).