]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: only check pool permissions for regular files 40779/head
authorXiubo Li <xiubli@redhat.com>
Mon, 29 Mar 2021 04:02:09 +0000 (12:02 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 21:27:43 +0000 (23:27 +0200)
commite3cea5f764c13bea731c9c7ae0d67f5d57306345
tree1cdf155a35bafd59fdb136345a925eee56fe4706
parent1976598f645ad1935a5e428219713b8856796d83
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