ceph: add new field max_file_size in ceph_fs_client
authorChengguang Xu <cgxu519@gmx.com>
Thu, 19 Jul 2018 14:15:24 +0000 (22:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:33:27 +0000 (21:33 +0200)
commit719784ba706cdbb47ef87483950f0a4594d36e87
tree98ebbab08cb3fda315435011ad517effcc08956e
parentf1d10e04637924f2b00a0fecdd2ca4565f5cfc3f
ceph: add new field max_file_size in ceph_fs_client

In order to not bother to VFS and other specific filesystems,
we decided to do offset validation inside ceph kernel client,
so just simply set sb->s_maxbytes to MAX_LFS_FILESIZE so that
it can successfully pass VFS check. We add new field max_file_size
in ceph_fs_client to store real file size limit and doing proper
check based on it.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/super.c
fs/ceph/super.h