From eeef9bf8c93b9a11df6ef530924ba4ab44e0092a Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 19 Mar 2015 19:32:44 +0100 Subject: 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 Reviewed-on: http://review.gluster.org/9947 Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/performance/md-cache/src/md-cache.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ -53,6 +53,16 @@ static struct mdc_key { .load = 0, .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, @@ -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: -- cgit