]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: add debugging for stray_prior_path
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 Jul 2024 02:01:42 +0000 (22:01 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 Jul 2024 02:02:58 +0000 (22:02 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Server.cc
src/mds/SessionMap.cc

index 3e35ec322fc024e2be0411784353708871b98382..d324d6b815528a223e3c823083323eba3378a95a 100644 (file)
@@ -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--;
index 9bec67c245d61e7cb7c7d97b5ec029c9ea309529..c296b88ec4df5cc829524a51c06921edd2e1ab1f 100644 (file)
@@ -1040,6 +1040,12 @@ int Session::check_access(CInode *in, unsigned mask,
                          const vector<uint64_t> *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())