summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2012-06-07 23:23:55 -0700
committerAnand Avati <avati@redhat.com>2012-07-04 01:15:42 -0700
commite6e0e5bede9315db377afdec9c7bd92cfaa9c4bb (patch)
tree5bc732639c575e2e7c71173df6540bb5d6605671 /glusterfsd
parent96e24e01fa01144e784597c9dc3648c78da78a61 (diff)
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 <avati@redhat.com> Reviewed-on: http://review.gluster.com/3538 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 433cabef111..0ab8fcd4c6d 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: