]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 27 Mar 2024 04:19:57 +0000 (12:19 +0800)
commit25c0817e9ae940ce822aba962d696c4c29dddc21
treeaf76ab5690212bc9ff02ea7a234c8f4d39c61155
parent051743f94b3dba2adadba5388032ae9edea4909f
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>
(cherry picked from commit e46dc20cdfb157f94781032451057d1e138535cc)
src/client/Client.cc
src/client/Client.h