From f58d2919a63002e4852d0be4d35b66c3ae9cce21 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Fri, 11 Mar 2016 15:07:48 +0530 Subject: posix: Filter gsyncd stime xattr Filter gsyncd stime xattr in lookup as well. The value of stime would be different among replica bricks and EC bricks. AFR and EC should not take any action on these as it could be different. Change-Id: If577f6115b36e036af2292ea0eaae93110f006ba Reviewed on: http://review.gluster.org/13678 BUG: 1313623 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/13679 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix-helpers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/storage/posix/src') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index c2da976533a..ba42272065b 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -749,6 +749,9 @@ _handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum, if (posix_special_xattr (marker_xattrs, key)) goto next; + if (!fnmatch (GF_XATTR_STIME_PATTERN, key, 0)) + goto next; + if (dict_get (filler->xattr, key)) goto next; -- cgit