From: Patrick Donnelly Date: Thu, 29 Jan 2026 15:44:21 +0000 (-0500) Subject: mds: abbreviate snaprealm in CInode dump X-Git-Tag: testing/wip-pdonnell-testing-20260207.214551~8^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ec6522987c816cfb6886b94e6cd2833d6f16a4c8;p=ceph-ci.git mds: abbreviate snaprealm in CInode dump 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 Fixes: https://tracker.ceph.com/issues/74652 --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 6fea79b6381..1b68354b3f1 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -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";