]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: only check pool permissions for regular files 40460/head
authorXiubo Li <xiubli@redhat.com>
Mon, 29 Mar 2021 04:02:09 +0000 (12:02 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 29 Mar 2021 04:48:56 +0000 (12:48 +0800)
commit59a3006b88f479cb5333e16fe30201ea14ab1717
tree3fddca7f2d3714bfacab31c86b7ea874f493d58f
parent37d1a231c0cf9f8b48af1e6ea83572883c00d740
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>
src/client/Client.cc