]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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, 29 Aug 2024 20:23:56 +0000 (16:23 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 9397f464310f7091ddb3dbd01ef400e0fbf4b423)

src/mds/Server.cc
src/mds/SessionMap.cc

index bd8e1f11b1cfce5e0a607bb8ca387802ad8bfd09..5378df7ef71c80cfc3174b2f3ace14ffb60c4f3d 100644 (file)
@@ -8181,6 +8181,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();
@@ -9476,6 +9477,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 48242f513b3999317dc61f2728c23bb113b8d829..b10be95fb331e3c562f51b6bf58420c67beee02d 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())