linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Btrfs: qgroup: part-1: bug fixes for qgroup inherit.
@ 2015-02-10 10:23 Dongsheng Yang
  2015-02-10 10:23 ` [PATCH 1/2] btrfs-progs:correct the return value Dongsheng Yang
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Dongsheng Yang @ 2015-02-10 10:23 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Dongsheng Yang

Hi all,

[1/9] is a RESEND with a reviewed-by.

[2/9]-[6/9] are bug fixes about qgroup_inherit(), these patch make
user can set the limits when creating a subvolume with the related
patch in userspace applied.

[7/9]-[8/9] are a cleanup for qgroup.

[9/9] provides a way for btrfs-progs to get the quota status by ioctl(),
then btrfs-progs can warn user when they are using qgroup with quota_disabled.

With this series patch applied, both btrfs and btrfs-progs:

[root@atest-guest linux_btrfs]# btrfs quota enable /mnt
[root@atest-guest linux_btrfs]# btrfs qgroup show -prce /mnt
qgroupid         rfer         excl     max_rfer     max_excl parent  child 
--------         ----         ----     --------     -------- ------  ----- 
0/5          16.00KiB     16.00KiB        0.00B        0.00B ---     ---  
[root@atest-guest linux_btrfs]# btrfs sub create /mnt/sub1
Create subvolume '/mnt/sub1'
[root@atest-guest linux_btrfs]# btrfs qgroup show -prce /mnt
qgroupid         rfer         excl     max_rfer     max_excl parent  child 
--------         ----         ----     --------     -------- ------  ----- 
0/5          16.00KiB     16.00KiB        0.00B        0.00B ---     ---  
0/257        16.00KiB     16.00KiB        0.00B        0.00B ---     ---  
[root@atest-guest linux_btrfs]# btrfs sub create /mnt/sub2 -r 10M -e 5M
Create subvolume '/mnt/sub2'
Set qgroup arguments:
	max reference: 10485760
	max exclusive: 5242880
[root@atest-guest linux_btrfs]# btrfs qgroup show -prce /mnt
qgroupid         rfer         excl     max_rfer     max_excl parent  child 
--------         ----         ----     --------     -------- ------  ----- 
0/5          16.00KiB     16.00KiB        0.00B        0.00B ---     ---  
0/257        16.00KiB     16.00KiB        0.00B        0.00B ---     ---  
0/258        16.00KiB     16.00KiB     10.00MiB      5.00MiB ---     --- 

Dongsheng Yang (8):
  btrfs: qgroup: move WARN_ON() to the correct location.
  btrfs: qgroup: inherit limit info from srcgroup in creating snapshot.
  btrfs: qgroup: update qgroup in memory at the same time when we update
    it in btree.
  btrfs: qgroup: consolidate the parameter of fucntion
    update_qgroup_limit_item().
  btrfs: qgroup: update limit info in function btrfs_run_qgroups().
  btrfs: qgroup: fix limit args override whole limit struct
  Btrfs: qgroup: make the btree for qgroup increase from left to right.
  Btrfs: qgroup: cleanup, remove an unsued parameter in
    btrfs_create_qgroup().

Fan Chengniang (1):
  btrfs: qgroup: obtain quota status

 fs/btrfs/ioctl.c              |   9 +++-
 fs/btrfs/qgroup.c             | 109 +++++++++++++++++++++++++++---------------
 fs/btrfs/qgroup.h             |   6 ++-
 fs/btrfs/tests/qgroup-tests.c |   4 +-
 include/uapi/linux/btrfs.h    |   3 ++
 5 files changed, 87 insertions(+), 44 deletions(-)

-- 
1.8.4.2


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

end of thread, other threads:[~2015-03-02 22:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 10:23 [PATCH 0/9] Btrfs: qgroup: part-1: bug fixes for qgroup inherit Dongsheng Yang
2015-02-10 10:23 ` [PATCH 1/2] btrfs-progs:correct the return value Dongsheng Yang
2015-02-27 15:37   ` David Sterba
2015-02-10 10:23 ` [PATCH 1/9] btrfs: qgroup: move WARN_ON() to the correct location Dongsheng Yang
2015-03-02 22:05   ` Josef Bacik
2015-02-10 10:23 ` [PATCH 2/2] btrfs-progs:set max_rfer and max_excl on creating new subvolume Dongsheng Yang
2015-02-10 10:23 ` [PATCH 2/9] btrfs: qgroup: inherit limit info from srcgroup in creating snapshot Dongsheng Yang
2015-03-02 22:10   ` Josef Bacik
2015-02-10 10:23 ` [PATCH 3/9] btrfs: qgroup: update qgroup in memory at the same time when we update it in btree Dongsheng Yang
2015-02-10 10:23 ` [PATCH 4/9] btrfs: qgroup: consolidate the parameter of fucntion update_qgroup_limit_item() Dongsheng Yang
2015-02-10 10:23 ` [PATCH 5/9] btrfs: qgroup: update limit info in function btrfs_run_qgroups() Dongsheng Yang
2015-02-10 10:23 ` [PATCH 6/9] btrfs: qgroup: fix limit args override whole limit struct Dongsheng Yang
2015-02-10 10:23 ` [PATCH 7/9] Btrfs: qgroup: make the btree for qgroup increase from left to right Dongsheng Yang
2015-02-10 10:23 ` [PATCH 8/9] Btrfs: qgroup: cleanup, remove an unsued parameter in btrfs_create_qgroup() Dongsheng Yang
2015-02-10 10:23 ` [PATCH 9/9] btrfs: qgroup: obtain quota status Dongsheng Yang

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).