summaryrefslogtreecommitdiffstats
path: root/xlators/performance/md-cache
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-03-19 19:32:44 +0100
committerVijay Bellur <vbellur@redhat.com>2015-03-27 10:45:12 -0700
commiteeef9bf8c93b9a11df6ef530924ba4ab44e0092a (patch)
treea2ee2473538f261fa2f3d6e165efcb7adc200daf /xlators/performance/md-cache
parentbc71cc39881730c8592718a5045a744387bfaea4 (diff)
md-cache: cache virtual POSIX ACL xattrs
http://review.gluster.org/9627 introduces two new virtual extended attributes that are used similar to the existing POSIX ACL xattrs. These new xattrs should get cached in the same way. BUG: 1185654 Change-Id: I6294b4f9ade887e29f8bd8ae5a3642891df8a631 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/9947 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/performance/md-cache')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index 68703db1195..7770cfd72d1 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -54,6 +54,16 @@ static struct mdc_key {
.check = 1,
},
{
+ .name = GF_POSIX_ACL_ACCESS,
+ .load = 0,
+ .check = 1,
+ },
+ {
+ .name = GF_POSIX_ACL_DEFAULT,
+ .load = 0,
+ .check = 1,
+ },
+ {
.name = GF_SELINUX_XATTR_KEY,
.load = 0,
.check = 1,
@@ -2213,6 +2223,7 @@ reconfigure (xlator_t *this, dict_t *options)
GF_OPTION_RECONF ("cache-posix-acl", conf->cache_posix_acl, options, bool, out);
mdc_key_load_set (mdc_keys, "system.posix_acl_", conf->cache_posix_acl);
+ mdc_key_load_set (mdc_keys, "glusterfs.posix_acl.", conf->cache_posix_acl);
GF_OPTION_RECONF("force-readdirp", conf->force_readdirp, options, bool, out);
@@ -2248,6 +2259,7 @@ init (xlator_t *this)
GF_OPTION_INIT ("cache-posix-acl", conf->cache_posix_acl, bool, out);
mdc_key_load_set (mdc_keys, "system.posix_acl_", conf->cache_posix_acl);
+ mdc_key_load_set (mdc_keys, "glusterfs.posix_acl.", conf->cache_posix_acl);
GF_OPTION_INIT("force-readdirp", conf->force_readdirp, bool, out);
out: