]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fscrypt_file field handling in MClientRequest messages
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Aug 2022 13:31:07 +0000 (09:31 -0400)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:58:54 +0000 (07:58 +0800)
commitfa6018356d5473b853417de500a2afa85c6bd226
treedb471ce8c4d5f08ae3094e56c7fe80629d00cf30
parent48326539d3d8a36e1b0cb34cdf66d7a7c27e1e66
ceph: fscrypt_file field handling in MClientRequest messages

For encrypted inodes, transmit a rounded-up size to the MDS as the
normal file size and send the real inode size in fscrypt_file field.

Also, fix up creates and truncates to also transmit fscrypt_file.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/dir.c
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h