From: Patrick Donnelly Date: Thu, 4 Jul 2024 02:01:42 +0000 (-0400) Subject: mds: add debugging for stray_prior_path X-Git-Tag: v20.0.0~1191^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9397f464310f7091ddb3dbd01ef400e0fbf4b423;p=ceph.git mds: add debugging for stray_prior_path Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 3e35ec322fc..d324d6b8155 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -8214,6 +8214,7 @@ void Server::_unlink_local(const MDRequestRef& mdr, CDentry *dn, CDentry *strayd { 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(); @@ -9509,6 +9510,7 @@ void Server::_rename_prepare(const 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 9bec67c245d..c296b88ec4d 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())