OSDN Git Service

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)
commit2723480a0f8fe6c045d23715eaa28f208644f42a
tree5ac1a63ffe81371388ebb7f16c6408b62bc717c8
parentf29efe292198b9dbf67fb79ec9ffb5865ca29fb8
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