]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Add quota_override knob into sysfs
authorSargun Dhillon <sargun@sargun.me>
Thu, 11 May 2017 21:18:03 +0000 (21:18 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:58 +0000 (18:25 +0200)
commit9db31316b16b8bcfa6130b7aabb07842bcf77572
tree5ac1a63ffe81371388ebb7f16c6408b62bc717c8
parent18b0e32ae844b8336b66b96099fe303944ae28b4
btrfs: Add quota_override knob into sysfs

This patch adds the read-write attribute quota_override into sysfs.
Any process which has CAP_SYS_RESOURCE can set this flag to on, and
once it is set to true, processes with CAP_SYS_RESOURCE can exceed
the quota.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor changelog edits ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c