[RFC PATCH v2 0/1] quota: report root dir quota usage in statfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux