From: Arne Jansen <sensille@gmx.net>
To: Andreas Philipp <philipp.andreas@gmail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Cannot create subvolume with quota enabled
Date: Mon, 10 Sep 2012 20:30:43 +0200 [thread overview]
Message-ID: <504E31D3.3020609@gmx.net> (raw)
In-Reply-To: <504E2DE1.8060405@gmail.com>
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
>>> majordomo@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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2012-09-10 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 19:36 Cannot create subvolume with quota enabled Andreas Philipp
2012-09-07 22:04 ` Arne Jansen
2012-09-10 18:13 ` Andreas Philipp
2012-09-10 18:30 ` Arne Jansen [this message]
2012-09-10 21:45 ` Andreas Philipp
2012-09-11 5:24 ` Marios Titas
2012-09-11 6:19 ` Arne Jansen
2012-09-11 8:35 ` Marios Titas
2012-09-11 10:21 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=504E31D3.3020609@gmx.net \
--to=sensille@gmx.net \
--cc=linux-btrfs@vger.kernel.org \
--cc=philipp.andreas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.