summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2016-03-11 15:07:48 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-03-29 01:36:09 -0700
commitf58d2919a63002e4852d0be4d35b66c3ae9cce21 (patch)
tree26a707515e9d13a3dc410a9cb138f5191736efdd /xlators/storage/posix
parentb487738c06ed537ab7fac61bd64db395602a6fed (diff)
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 <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/13679 Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c3
1 files changed, 3 insertions, 0 deletions
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;