]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: only check pool permissions for regular files 40730/head
authorXiubo Li <xiubli@redhat.com>
Mon, 29 Mar 2021 04:02:09 +0000 (12:02 +0800)
committerRamana Raja <rraja@redhat.com>
Fri, 16 Apr 2021 21:54:41 +0000 (17:54 -0400)
commit2736063abd55be1801e15715dc779edaf3017389
tree348a2d400ecacf3987713c867a08973d0c9bfac2
parent4a484defa41990fd66da31a0d82368eaa41ecbb5
client: only check pool permissions for regular files

There is no need to do a check_pool_perm() on anything that isn't
a regular file, as the MDS is what handles talking to the OSD in
those cases. Just return 0 if it's not a regular file.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 59a3006b88f479cb5333e16fe30201ea14ab1717)
src/client/Client.cc