From 8d8743ebf0eea7e87eef4cabb7ebcef4a602c471 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 BUG: 1296496 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/13678 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix-helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index d6e1736bfd5..7a5a241fbb1 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -744,6 +744,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