]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: use the fs' full path instead of from mountpoint's root
authorXiubo Li <xiubli@redhat.com>
Thu, 19 Oct 2023 02:20:55 +0000 (10:20 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 19 Oct 2023 02:24:54 +0000 (10:24 +0800)
commite46dc20cdfb157f94781032451057d1e138535cc
treec90f9542561759195d672b6819c074c75e5d33c5
parent28cb4d10b191293433ee72a6b3b1024011333021
client: use the fs' full path instead of from mountpoint's root

The mountpoint's root ino# possibly not be the full CephFS
filesystem root, it's just the mountpoint of this particular client.
Just prepend the mountpoint path to the full path.

Introduced-by: c1bf8d88e9d client: check the cephx mds auth access for setattr
Introduced-by: ce216595c03 client: check the cephx mds auth access for open
Fixes: https://github.com/ceph/ceph/pull/48027#issuecomment-1741019086
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/client/Client.h