]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds/CInode: shorten path before printing in logs
authorRishabh Dave <ridave@redhat.com>
Sun, 17 Aug 2025 18:13:40 +0000 (23:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 1 Oct 2025 19:01:46 +0000 (00:31 +0530)
commit7dbb4e9833f91d79a981c669c5a27996295eb2c1
tree323b8ccb8a98b329f1dff87c3210c4958e321f94
parent3e427c174241a6d6143e5934d264022d3d8246a6
mds/CInode: shorten path before printing in logs

Printing entire path in logs when it is too long (containing 2000
components, for example) is not only is not useful but also reduces
readability of logs. Therefore, shorten paths to 10 final components
when logging them.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mds/CInode.cc