summaryrefslogtreecommitdiffstats
path: root/xlators
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-15 22:00:21 -0700
commit8d8743ebf0eea7e87eef4cabb7ebcef4a602c471 (patch)
tree856e33161361a3aec8504ffea695cb767b2bad4d /xlators
parent23ccabbeb7879fd05f415690124bd7b4a74d4d33 (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 BUG: 1296496 Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/13678 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators')
-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 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;