Skip to content
Commit f29efe29 authored by Sargun Dhillon's avatar Sargun Dhillon Committed by David Sterba
Browse files

btrfs: add quota override flag to enable quota override for CAP_SYS_RESOURCE



This patch introduces the quota override flag to btrfs_fs_info, and a
change to quota limit checking code to temporarily allow for quota to be
overridden for processes with CAP_SYS_RESOURCE.

It's useful for administrative programs, such as log rotation, that may
need to temporarily use more disk space in order to free up a greater
amount of overall disk space without yielding more disk space to the
rest of userland.

Eventually, we may want to add the idea of an operator-specific quota,
operator reserved space, or something else to allow for administrative
override, but this is perhaps the simplest solution.

Signed-off-by: default avatarSargun Dhillon <sargun@sargun.me>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ minor changelog edits ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a5ed45f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment