> On Mon, Oct 8, 2012 at 3:01 PM, Arne Jansen <sensille@xxxxxxx> wrote: >> >> >> 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. >> 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 ! >> >> 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! -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
