From 54f5bc6c12ab2b49f228e3e1f8cd8fabff55c953 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 11 Mar 2025 10:18:12 -0400 Subject: [PATCH] client: do not wrap ceph special names This avoids encrypting .snap which prevents Client::_lookup from opening the snapdir. Signed-off-by: Patrick Donnelly --- src/client/Client.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/Client.cc b/src/client/Client.cc index 64ae9a5dc38..d8cb7e1cf32 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -1320,6 +1320,11 @@ bool Client::_wrap_name(Inode& diri, std::string& dname, std::string& alternate_ ceph_assert(dname.size() > 0); alternate_name = ""; + if (dname == cct->_conf->client_snapdir) { + ldout(cct, 25) << __func__ << ": is special name" << dendl; + return true; + } + if (diri.has_charmap()) { auto& cs = diri.get_charmap(); ldout(cct, 25) << __func__ << ": " << cs << dendl; -- 2.47.3