Skip to content

Commit 9397f46

Browse files
committed
mds: add debugging for stray_prior_path
Signed-off-by: Patrick Donnelly <[email protected]>
1 parent e884e3a commit 9397f46

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/mds/Server.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8214,6 +8214,7 @@ void Server::_unlink_local(const MDRequestRef& mdr, CDentry *dn, CDentry *strayd
82148214
{
82158215
std::string t;
82168216
dn->make_path_string(t, true);
8217+
dout(20) << " stray_prior_path = " << t << dendl;
82178218
pi.inode->stray_prior_path = std::move(t);
82188219
}
82198220
pi.inode->version = in->pre_dirty();
@@ -9509,6 +9510,7 @@ void Server::_rename_prepare(const MDRequestRef& mdr,
95099510
{
95109511
std::string t;
95119512
destdn->make_path_string(t, true);
9513+
dout(20) << " stray_prior_path = " << t << dendl;
95129514
tpi->stray_prior_path = std::move(t);
95139515
}
95149516
tpi->nlink--;

src/mds/SessionMap.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,12 @@ int Session::check_access(CInode *in, unsigned mask,
10401040
const vector<uint64_t> *caller_gid_list,
10411041
int new_uid, int new_gid)
10421042
{
1043+
dout(20) << __func__ << ": " << *in
1044+
<< " caller_uid=" << caller_uid
1045+
<< " caller_gid=" << caller_gid
1046+
<< " caller_gid_list=" << *caller_gid_list
1047+
<< dendl;
1048+
10431049
string path;
10441050
CInode *diri = NULL;
10451051
if (!in->is_base())

0 commit comments

Comments
 (0)