RFC quota: report root dir quota usage in statfs
Status from this message: Applied, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest1 patch 1 replyApplied
- v1 RFC1 patch 2 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | quota: report root dir quota usage in statfsDocumentation/ fs/ fs/ +1 more | +89 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/1] quota: report root dir quota usage in statfs
Following this email I'm sending a patch that modifies the statfs behaviour in cephfs kernel client so that, by default, it shows the quota statistics for the root directory instead of the overall filesystem usage.
I'm sending this patch as an RFC because:
* I'm not sure people really want to have this behaviour -- this is the default for the ceph-fuse client, so I just wanted to have a similar behaviour in the kernel client.
* Showing quota usage by default may not be the correct option, although (again!) this is what the ceph-fuse client does.
Anyway, there's also a new mount option ('noquotadf') to revert to the old statfs even if the root dir has max_bytes set.
Just for reference, this statfs behaviour was added to the ceph-fuse client by commit b6d2b6d1a519 ("client: report root's quota in statfs").
** Changes since v1 **
- Rework after review from Yan, Zheng:
* Added '()' to expression
* Added an extra 'quotadf' mount option
Luis Henriques (1):
quota: report root dir quota usage in statfs
Documentation/filesystems/ceph.txt | 4 +++ fs/ceph/quota.c | 56 ++++++++++++++++++++++++++++++++++++++ fs/ceph/super.c | 29 ++++++++++++++++++-- fs/ceph/super.h | 3 ++ 4 files changed, 89 insertions(+), 3 deletions(-)