]> git-server-git.apps.pok.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>
Thu, 16 Oct 2025 06:09:26 +0000 (11:39 +0530)
commit8123a931cf54968a0ffb0e4183f59ca4b3c6251d
treef859a335d024ab9bb474598d4e85545f3bb6a294
parentb550e43d3c63bcebe6e7ab065015ac00bf8d9f0f
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
src/include/filepath.h
- Unlink main branch, filepath.cc is absent in this branch. Therefore,
  the changes must be moved to filepath.h.
src/client/Client.cc
src/client/Client.h
src/include/filepath.h