summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorLuis Henriques2018-01-31 11:53:13 +0100
committerIlya Dryomov2018-04-02 11:17:53 +0200
commit9122eed5281e89bdb02162a8ecb3cc13ffc8985e (patch)
tree76c813dd8c16b85bce3d26cbb9d763d67fbc1d8f /Documentation/filesystems
parentceph: quota: add counter for snaprealms with quota (diff)
downloadkernel-qcow2-linux-9122eed5281e89bdb02162a8ecb3cc13ffc8985e.tar.gz
kernel-qcow2-linux-9122eed5281e89bdb02162a8ecb3cc13ffc8985e.tar.xz
kernel-qcow2-linux-9122eed5281e89bdb02162a8ecb3cc13ffc8985e.zip
ceph: quota: report root dir quota usage in statfs
This commit changes statfs default behaviour when reporting usage statistics. Instead of using the overall filesystem usage, statfs now reports the quota for the filesystem root, if ceph.quota.max_bytes has been set for this inode. If quota hasn't been set, it falls back to the old statfs behaviour. A new mount option is also added ('noquotadf') to disable this behaviour. Signed-off-by: Luis Henriques <lhenriques@suse.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/ceph.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/filesystems/ceph.txt b/Documentation/filesystems/ceph.txt
index 094772481263..d7f011ddc150 100644
--- a/Documentation/filesystems/ceph.txt
+++ b/Documentation/filesystems/ceph.txt
@@ -149,6 +149,10 @@ Mount Options
noasyncreaddir
Do not use the dcache as above for readdir.
+ noquotadf
+ Report overall filesystem usage in statfs instead of using the root
+ directory quota.
+
More Information
================