]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: send the fscrypt_auth/fscrypt_file to clients in MClientCaps
authorXiubo Li <xiubli@redhat.com>
Wed, 24 Nov 2021 02:19:21 +0000 (10:19 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 13 Jan 2022 14:01:39 +0000 (22:01 +0800)
The clients will trust and need fscrypt_file field to truncate the
pagecaches and update the i_size.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/CInode.cc

index 47959d60ed666a29eb8121335184f3de0067cd69..fa4acbc8210caf0dc6a5c83e1a970c584b2e7721 100644 (file)
@@ -4150,6 +4150,8 @@ void CInode::encode_cap_message(const ref_t<MClientCaps> &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;