On 2017-11-02 05:09, ST wrote:

Ok. I'll use more standard approaches. Which of following commands will
work with BTRFS:

https://debian-handbook.info/browse/stable/sect.quotas.html
None, qgroups are the only option right now with BTRFS, and it's pretty
likely to stay that way since the internals of the filesystem don't fit
well within the semantics of the regular VFS quota API.  However,
provided you're not using huge numbers of reflinks and subvolumes, you
should be fine using qgroups.

I want to have 7 daily (or 7+4) read-only snapshots per user, for ca.
100 users. I don't expect users to invoke cp --reflink or take
snapshots.
Based on what you say below about user access, you should be absolutely
fine then.

There's one other caveat though, only root can use the qgroup ioctls,
which means that only root can check quotas.

Only root can check quotas?! That is really strange. How users are
supposed to know they are about to be out of space?... Is this by design
so and will remain like that or it's just because this feature was not
finished yet?

I have no idea if it's intended to be that way, but quite a few things in BTRFS are root-only that debatably should not be. I think the quota ioctls fall under the same category as the tree search ioctl, they access data that's technically privileged and can let you see things beyond the mount point they're run on.
--
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