From: Jeff Layton Date: Wed, 5 May 2021 12:18:36 +0000 (-0400) Subject: mds: populate fscrypt_auth/_file on inode creation X-Git-Tag: v18.0.0~1381^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=33381ff717bbfd0690c5914e8aa6ed18e2516bf8;p=ceph.git mds: populate fscrypt_auth/_file on inode creation Signed-off-by: Jeff Layton --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 2487a6b76bf1..5212e2b28c93 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -3367,6 +3367,11 @@ CInode* Server::prepare_new_inode(MDRequestRef& mdr, CDir *dir, inodeno_t useino _inode->change_attr = 0; const cref_t &req = mdr->client_request; + + dout(10) << "copying fscrypt_auth len " << req->fscrypt_auth.size() << dendl; + _inode->fscrypt_auth = req->fscrypt_auth; + _inode->fscrypt_file = req->fscrypt_file; + if (req->get_data().length()) { auto p = req->get_data().cbegin();