Thread (1 message) 1 message, 1 author, 2012-10-08

Re: working quota example?

From: matthieu Barthélemy <hidden>
Date: 2012-10-08 19:49:09

On Mon, Oct 8, 2012 at 3:01 PM, Arne Jansen [off-list ref] wrote:
quoted

Please refer here <http://sensille.com/qgroups.pdf> for a discussion of
the
meaning of those values.
Thanks, I already read your paper a few days ago, but it was a quick
reading in order to try to understand the concepts.

quoted
Your mistake was to create the group 0/100 yourself. The command qgroup
create is only needed to create quota groups of subvolumes.
Yes, for me it wasn't clear if one could create quotas without having
first to play with qgroups explicitly.
Thanks for pointing that out !
quoted
To limit the subvol:

# btrfs qgroup limit 2m /mnt/test/sub1
# dd if=/dev/zero of=/mnt/test/sub1/file1 bs=10485760 count=1
dd: writing `/mnt/test/sub1/file1': Disk quota exceeded
1+0 records in
0+0 records out
1966080 bytes (2.0 MB) copied, 0.0056283 s, 349 MB/s

Hope that helps :)
Totally :)

Are there any plan to maybe get a better 'btrfs quota show' output? Maybe
with more details, maybe a simple ' 1 subvolume + all its snapshots'
accounting.
Maybe I missed something, and I admit I didn't read all the btrfs-progs
patches related to qgroups, but there doesn't seem to have an option to show
a subvolume's quota limit (not the referenced/exclusive usage counters). Am
 I right?

 Thanks again Arne for your help!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help