From: Patrick Donnelly Date: Thu, 4 Jul 2024 02:01:42 +0000 (-0400) Subject: mds: add debugging for stray_prior_path X-Git-Tag: v18.2.5~259^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b3b1dee9d40e50a4d14bac857ada198b963f90fd;p=ceph.git mds: add debugging for stray_prior_path Signed-off-by: Patrick Donnelly (cherry picked from commit 9397f464310f7091ddb3dbd01ef400e0fbf4b423) --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 54b8d27f3a74..7203f7f0eb2b 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -8159,6 +8159,7 @@ void Server::_unlink_local(MDRequestRef& mdr, CDentry *dn, CDentry *straydn) { std::string t; dn->make_path_string(t, true); + dout(20) << " stray_prior_path = " << t << dendl; pi.inode->stray_prior_path = std::move(t); } pi.inode->version = in->pre_dirty(); @@ -9458,6 +9459,7 @@ void Server::_rename_prepare(MDRequestRef& mdr, { std::string t; destdn->make_path_string(t, true); + dout(20) << " stray_prior_path = " << t << dendl; tpi->stray_prior_path = std::move(t); } tpi->nlink--; diff --git a/src/mds/SessionMap.cc b/src/mds/SessionMap.cc index 9bec67c245d6..c296b88ec4df 100644 --- a/src/mds/SessionMap.cc +++ b/src/mds/SessionMap.cc @@ -1040,6 +1040,12 @@ int Session::check_access(CInode *in, unsigned mask, const vector *caller_gid_list, int new_uid, int new_gid) { + dout(20) << __func__ << ": " << *in + << " caller_uid=" << caller_uid + << " caller_gid=" << caller_gid + << " caller_gid_list=" << *caller_gid_list + << dendl; + string path; CInode *diri = NULL; if (!in->is_base())