ceph: quota: add initial infrastructure to support cephfs quotas
authorLuis Henriques <lhenriques@suse.com>
Fri, 5 Jan 2018 10:47:18 +0000 (10:47 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 09:17:51 +0000 (11:17 +0200)
commitfb18a57568c2b84cd611e242c0f6fa97b45e4907
tree0f447778c8ce55e583cd8cf8eb8e945d38b5c208
parent08a79102aa373e03ce704621fd84567605214465
ceph: quota: add initial infrastructure to support cephfs quotas

This patch adds the infrastructure required to support cephfs quotas as it
is currently implemented in the ceph fuse client.  Cephfs quotas can be
set on any directory, and can restrict the number of bytes or the number
of files stored beneath that point in the directory hierarchy.

Quotas are set using the extended attributes 'ceph.quota.max_files' and
'ceph.quota.max_bytes', and can be removed by setting these attributes to
'0'.

Link: http://tracker.ceph.com/issues/22372
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Documentation/filesystems/ceph.txt
fs/ceph/Makefile
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/quota.c [new file with mode: 0644]
fs/ceph/super.h
fs/ceph/xattr.c
include/linux/ceph/ceph_features.h
include/linux/ceph/ceph_fs.h
net/ceph/ceph_common.c