]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: do not fscrypt encrypt snapshot names
authorChristopher Hoffman <choffman@redhat.com>
Tue, 6 May 2025 19:02:29 +0000 (19:02 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Fri, 15 Aug 2025 16:03:31 +0000 (16:03 +0000)
Snapshot names are visible within the .snap directory
as dir entries. They can be created by a client that
has an fscrypt key present and also by the manager who
does not have any key. While the client with the key
can create an encrypted name the manager cannot.
Standardize functionality of these semantics to the
common of the two.

Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 42b4506ad258e5666441b003d9c50d2e6de0cc17..15dd8608c73f05711ee7ee76db4bb4d987fcae04 100644 (file)
@@ -14032,8 +14032,6 @@ InodeRef Client::open_snapdir(const InodeRef& diri)
   auto [it, b] = inode_map.try_emplace(vino, nullptr);
   if (b) {
     in = new Inode(this, vino, &diri->layout);
-    in->fscrypt_auth = diri->fscrypt_auth; /* borrow parent fscrypt data */
-    in->fscrypt_ctx = in->init_fscrypt_ctx(fscrypt.get());
     refresh_snapdir_attrs(in, diri.get());
     diri->flags |= I_SNAPDIR_OPEN;
     it->second = in;