From: Patrick Donnelly Date: Tue, 11 Mar 2025 14:18:12 +0000 (-0400) Subject: client: do not wrap ceph special names X-Git-Tag: testing/wip-vshankar-testing-20260120.085915-debug^2~13^2~71 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=54f5bc6c12ab2b49f228e3e1f8cd8fabff55c953;p=ceph-ci.git client: do not wrap ceph special names This avoids encrypting .snap which prevents Client::_lookup from opening the snapdir. Signed-off-by: Patrick Donnelly --- 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;