From: Xiubo Li Date: Wed, 24 Nov 2021 02:19:21 +0000 (+0800) Subject: mds: send the fscrypt_auth/fscrypt_file to clients in MClientCaps X-Git-Tag: v18.0.0~1381^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=090810b665c276d46cb634bb9b2ab23af2d3aad7;p=ceph.git mds: send the fscrypt_auth/fscrypt_file to clients in MClientCaps The clients will trust and need fscrypt_file field to truncate the pagecaches and update the i_size. Signed-off-by: Xiubo Li --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 47959d60ed66..fa4acbc8210c 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -4150,6 +4150,8 @@ void CInode::encode_cap_message(const ref_t &m, Capability *cap) m->size = i->size; m->truncate_seq = i->truncate_seq; m->truncate_size = i->truncate_size; + m->fscrypt_file = i->fscrypt_file; + m->fscrypt_auth = i->fscrypt_auth; m->mtime = i->mtime; m->atime = i->atime; m->ctime = i->ctime;