From e6e0e5bede9315db377afdec9c7bd92cfaa9c4bb Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 7 Jun 2012 23:23:55 -0700 Subject: md-cache: cache SELinux and Posix ACL xattrs only if enabled Fetch and cache SELinux and Posix ACL extended attributes only if they are enabled in the command line respectively. Fetching the extra extended attributes is pointless and negatively impacts performance Change-Id: I1bd1dbb1abb4a6929fad5f78bbfeaab8542ab4e2 BUG: 765785 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.com/3538 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- glusterfsd/src/glusterfsd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'glusterfsd/src/glusterfsd.c') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 433cabef1..0ab8fcd4c 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -573,10 +573,14 @@ parse_opts (int key, char *arg, struct argp_state *state) case ARGP_ACL_KEY: cmd_args->acl = 1; + gf_remember_xlator_option (&cmd_args->xlator_options, + "*-md-cache.cache-posix-acl=true"); break; case ARGP_SELINUX_KEY: cmd_args->selinux = 1; + gf_remember_xlator_option (&cmd_args->xlator_options, + "*-md-cache.cache-selinux=true"); break; case ARGP_WORM_KEY: -- cgit