From 090810b665c276d46cb634bb9b2ab23af2d3aad7 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Wed, 24 Nov 2021 10:19:21 +0800 Subject: [PATCH] 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 --- src/mds/CInode.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 47959d60ed6..fa4acbc8210 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; -- 2.47.3