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.