Re: Adding a non-empty subvol to a qgroup

2013-03-22 Thread Arne Jansen
On 22.03.2013 13:03, Wang Shilong wrote: > Hello Arne, > > Since "quota rescan" has not been implemented yet, > > overflow can happen, so until now, we can have a check when > doing accounting in the kernel, if the referenced/exclusive is not > enough to delete, we just make it to be 0 and give a

Re: Adding a non-empty subvol to a qgroup

2013-03-22 Thread Wang Shilong
Hello Arne, Since "quota rescan" has not been implemented yet, overflow can happen, so until now, we can have a check when doing accounting in the kernel, if the referenced/exclusive is not enough to delete, we just make it to be 0 and give a warning. Otherwise, user may get a strange integer(be

Re: Adding a non-empty subvol to a qgroup

2013-03-22 Thread Wang Shilong
Hello, > All, > > When adding a subvolume to a qgroup, pre-existing files in that subvolume are > not counted in the referenced/exclusive space of the qgroup. Is this intended > behavior ? Btrfs quota rescan has not been implemented yet. So until now, the pre-existing files are not counted.

Adding a non-empty subvol to a qgroup

2013-03-22 Thread Koen De Wit
All, When adding a subvolume to a qgroup, pre-existing files in that subvolume are not counted in the referenced/exclusive space of the qgroup. Is this intended behavior ? I create a subvol with one file: # mkfs.btrfs /dev/sdg # mount /dev/sdg /mnt/fulldisk # cd /mnt/fulldisk # btrfs