]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: only check pool permissions for regular files 40686/head
authorXiubo Li <xiubli@redhat.com>
Mon, 29 Mar 2021 04:02:09 +0000 (12:02 +0800)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:31:57 +0000 (07:31 +0200)
commitb7e15965e77fc2fbb1827ef4401372c13eacba74
tree18a56177f0b5d68bb3fec27a778ca4f79b4ed585
parent932dd17a34e0e09974992c58846070f283329396
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