Re: [PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

2012-07-18 Thread Alex Lyakas
Arne, thanks for your comments. On Tue, Jul 17, 2012 at 10:25 PM, Arne Jansen sensi...@gmx.net wrote: On 07/17/2012 08:33 PM, Alex Lyakas wrote: Jan, I have studied to some extent the PDF and the code. I have some questions; perhaps you can address them? 1) btrfs_qgroup_account_ref()

Re: [PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

2012-07-17 Thread Alex Lyakas
Jan, I have studied to some extent the PDF and the code. I have some questions; perhaps you can address them? 1) btrfs_qgroup_account_ref() calling btrfs_find_all_roots(): I understand that bytenr indicates some EXTENT_ITEM, which is a back-reference for extent, which is perhaps a tree block

Re: [PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

2012-07-17 Thread Arne Jansen
On 07/17/2012 08:33 PM, Alex Lyakas wrote: Jan, I have studied to some extent the PDF and the code. I have some questions; perhaps you can address them? 1) btrfs_qgroup_account_ref() calling btrfs_find_all_roots(): I understand that bytenr indicates some EXTENT_ITEM, which is a

Re: [PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

2012-07-17 Thread Jan Schmidt
On 17.07.2012 21:25, Arne Jansen wrote: On 07/17/2012 08:33 PM, Alex Lyakas wrote: extent? Also, how do we encounter roots (which is what we need in the output) during this walking? Hope you can shed some light, or you can iirc the root backreferences itself, which is the criterion that we

[PATCH v1 00/15] Btrfs: subvolume quota groups (qgroups)

2012-07-12 Thread Jan Schmidt
This is a new version of Arne's qgroup patches from last October. The old patches didn't get the backref walking right, which is now based on the tree modification log. You can limit the space available to subvolumes or any group of subvolumes. You can determine the amount of space that will get