On 09/10/2012 08:13 PM, Andreas Philipp wrote:
> Hi Arne,
> 
> On 08.09.2012 00:04, Arne Jansen wrote:
>> Hi Andreas,
>>
>> On 09/07/2012 09:36 PM, Andreas Philipp wrote:
>>> Hi,
>>>
>>> The following steps reproduce the error. My kernel is 3.6-rc4 and 
>>> btrfs-progs are at commit 89fe5b5f666c247aa3173745fb87c710f3a71a4a
>>> from 
>>> git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
>>>
>>>
>> master.
>>> thor ~ # mkfs.btrfs -L test /dev/vg1/test
>>>
>>> WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see
>>> http://btrfs.wiki.kernel.org before using
>>>
>>> fs created label test on /dev/vg1/test nodesize 4096 leafsize 4096
>>> sectorsize 4096 size 20.00GB Btrfs Btrfs v0.19 thor ~ # mount
>>> /dev/vg1/test /mnt/tmp thor ~ # btrfs quota enable /mnt/tmp thor ~
>>> # btrfs subvolume create /mnt/tmp/test Create subvolume
>>> '/mnt/tmp/test' ERROR: cannot create subvolume - Invalid argument
>> Thanks for giving quota a try. I sent a fix separately with
>> the subject
>>
>> [PATCH] Btrfs: btrfs_qgroup_inherit wrongly returns an error
>>
>> Could you please see if it fixes the problem?
> With the patch applied (on top of either 3.6-rc4 or 3.6-rc5) I can
> create subvolumes as you see below.
> 
> root@debian:~# mkfs.btrfs /dev/sdb
> 
> WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
> WARNING! - see http://btrfs.wiki.kernel.org before using
> 
> fs created label (null) on /dev/sdb
>         nodesize 4096 leafsize 4096 sectorsize 4096 size 3.00GB
> Btrfs Btrfs v0.19
> root@debian:~# mount /dev/sdb /mnt/test
> root@debian:~# btrfs quota enable /mnt/test
> root@debian:~# btrfs subvolume create /mnt/test/subvolume
> Create subvolume '/mnt/test/subvolume'
> root@debian:~# btrfs qgroup show /mnt/test
> 0/257 4096 4096
> root@debian:~# dd if=/dev/urandom of=/mnt/test/subvolume/testfile
> bs=1024k count=25
> 25+0 records in
> 25+0 records out
> 26214400 bytes (26 MB) copied, 2.95321 s, 8.9 MB/s
> root@debian:~# btrfs qgroup show /mnt/test
> 0/257 4096 4096
> root@debian:~# du -hs /mnt/test/*
> 25M     /mnt/test/subvolume
> 
> At least I expected that the output of ' btrfs qgroup show' changes
> after some data got written to a subvolume which is assigned to a
> qgroup. (Hope, I got it right.)

due to delayed-*, the accounting also sometimes shows up delayed.
After a sync you should see the changes.

> 
> Thanks,
> Andreas
> 
>>
>> Thanks,
>> Arne
>>> Please, do not hesitate to contact me for any further information
>>> etc.
>>>
>>> Thanks, Andreas -- To unsubscribe from this list: send the line
>>> "unsubscribe linux-btrfs" in the body of a message to
>>> majord...@vger.kernel.org More majordomo info at
>>> http://vger.kernel.org/majordomo-info.html
>>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to