From 9397f464310f7091ddb3dbd01ef400e0fbf4b423 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 3 Jul 2024 22:01:42 -0400 Subject: [PATCH] mds: add debugging for stray_prior_path Signed-off-by: Patrick Donnelly --- src/mds/Server.cc | 2 ++ src/mds/SessionMap.cc | 6 ++++++ 2 files changed, 8 insertions(+) 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()) -- 2.39.5