]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: trim path before logging it
authorRishabh Dave <ridave@redhat.com>
Tue, 2 Sep 2025 17:37:36 +0000 (23:07 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 8 Oct 2025 11:49:00 +0000 (17:19 +0530)
commitc0fa6e783ebe977d7734717ce7d58847d0e80ffc
tree69820757ad861e59e69cb24ee5fb3a20ef3a78fe
parent5d6f61acb4b7d8c0664642b5206908603c6748f4
client: trim path before logging it

Path can be virtually infinitely long and logging a long long path
(imagine around 2000 path components) is un-useful as well as lowers
readability of the log. Therefore, trim before logging.

Fixes: https://tracker.ceph.com/issues/72993
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit bdc8aae400fbbdd61df811455d49176deab1f331)

Conflicts:

src/include/filepath.cc
- filepath.cc is absent in reef branches, patches for it are manually to
  filepath.h instead.

src/include/filepath.h
- This file was modified in one of the previous commits to have the
  defintion of set_trimmed() instead of declaration since filepath.cc is
  absent in this branch.
src/client/Client.cc
src/client/Client.h
src/include/filepath.h