]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: for logging generate only 10 final components of inode path
authorRishabh Dave <ridave@redhat.com>
Sun, 17 Aug 2025 18:13:40 +0000 (23:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 22 Sep 2025 10:09:31 +0000 (15:39 +0530)
commit29cac0aa814de06f45a338c6d49ce864d9ec6e46
treebf0bc8f6b650e72e838df65081db3aa2d620645a
parent6021dda7ed137445885979cd4d4b28c770abce13
mds: for logging generate only 10 final components of inode path

Generating full absolute path for inodes for printing in MDS logs slows
down the FS to a great extent especially when the path is very long
(imagine a path with 2000 components). Also printing such long paths in
MDS logs is not only pointless but also greatly reduces the readability
of the MDS logs.

Therefore, generate only 10 final components of inode paths for logging.

Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mds/CDentry.cc
src/mds/CDentry.h
src/mds/CDir.cc
src/mds/CDir.h
src/mds/CInode.cc
src/mds/CInode.h
src/mds/ScrubStack.cc