From: Yan, Zheng Date: Tue, 2 May 2017 07:41:13 +0000 (+0800) Subject: ceph-fuse: use user space permission check by default X-Git-Tag: v12.0.3~57^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5915dd9c54234293d9b7c4431d0ec074b58a7e6c;p=ceph.git ceph-fuse: use user space permission check by default The kernel permission check uses getattr() to get inode's uid, gid and mode. But due to limitation of fuse API, ceph-fuse has to get attributes of the inode. Getting direcotry inode's size can be slow if the directory is fragmented and dirfrags are managed by multiple mds. Fixes: http://tracker.ceph.com/issues/19820 Signed-off-by: "Yan, Zheng" --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index a435919649eb..79898cea36b7 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -465,7 +465,7 @@ OPTION(client_dirsize_rbytes, OPT_BOOL, true) OPTION(fuse_use_invalidate_cb, OPT_BOOL, true) // use fuse 2.8+ invalidate callback to keep page cache consistent OPTION(fuse_disable_pagecache, OPT_BOOL, false) OPTION(fuse_allow_other, OPT_BOOL, true) -OPTION(fuse_default_permissions, OPT_BOOL, true) +OPTION(fuse_default_permissions, OPT_BOOL, false) OPTION(fuse_big_writes, OPT_BOOL, true) OPTION(fuse_atomic_o_trunc, OPT_BOOL, true) OPTION(fuse_debug, OPT_BOOL, false)