]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: populate fscrypt_auth/_file on inode creation
authorJeff Layton <jlayton@redhat.com>
Wed, 5 May 2021 12:18:36 +0000 (08:18 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 13 Jan 2022 13:08:42 +0000 (21:08 +0800)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mds/Server.cc

index 2487a6b76bf19a1af7a18d1fd496cc28813ca12d..5212e2b28c93a4e3b0cc5850307a2eaa57a5e44a 100644 (file)
@@ -3367,6 +3367,11 @@ CInode* Server::prepare_new_inode(MDRequestRef& mdr, CDir *dir, inodeno_t useino
   _inode->change_attr = 0;
 
   const cref_t<MClientRequest> &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();