]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: abbreviate snaprealm in CInode dump
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 29 Jan 2026 15:44:21 +0000 (10:44 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 29 Jan 2026 17:09:47 +0000 (12:09 -0500)
So that it doesn't match in greps for the snaprealm.

Now looks like:

    2026-01-29T12:05:52.607-0500 7defd1a64640 10 mds.0.cache journal_cow_dentry follows 1 < first on [inode 0x10000000002 [...2,head] /volumes/_nogroup/foo/ auth v16 pv20 ap=1 sr=0x5c1a558a66c0 DIRTYPARENT f(v0 m2026-01-29T12:05:52.593286-0500 2=1+1) n(v0 rc2026-01-29T12:05:52.596656-0500 b122 3=1+2) (isnap sync r=1) (inest lock w=1) (ifile excl w=1) (iversion lock w=1 last_client=4344) (iquiesce lock w=1 last_client=4344) caps={4344=pAsLsXsFsx/-@6},l=4344 | request=0 lock=5 dirfrag=1 caps=1 dirtyparent=1 dirty=1 waiter=0 authpin=1 0x5c1a5a8cb080]

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
Fixes: https://tracker.ceph.com/issues/74652
src/mds/CInode.cc

index 6fea79b6381b30268b52df4ac121ef983ae85bc9..1b68354b3f1061b402b6d7b589876be35568e07e 100644 (file)
@@ -215,7 +215,7 @@ ostream& operator<<(ostream& out, const CInode& in)
   }
 
   if (in.snaprealm)
-    out << " snaprealm=" << in.snaprealm;
+    out << " sr=" << in.snaprealm;
 
   if (in.state_test(CInode::STATE_AMBIGUOUSAUTH)) out << " AMBIGAUTH";
   if (in.state_test(CInode::STATE_NEEDSRECOVER)) out << " NEEDSRECOVER";