|
|
12a457 |
From 771f4123db85652c20d8b40c768528ca74eed4d6 Mon Sep 17 00:00:00 2001
|
|
|
12a457 |
From: Kotresh HR <khiremat@redhat.com>
|
|
|
12a457 |
Date: Fri, 11 Mar 2016 15:07:48 +0530
|
|
|
12a457 |
Subject: [PATCH 34/80] posix: Filter gsyncd stime xattr
|
|
|
12a457 |
|
|
|
12a457 |
Filter gsyncd stime xattr in lookup as well.
|
|
|
12a457 |
The value of stime would be different among
|
|
|
12a457 |
replica bricks and EC bricks. AFR and EC
|
|
|
12a457 |
should not take any action on these as it
|
|
|
12a457 |
could be different.
|
|
|
12a457 |
|
|
|
12a457 |
Change-Id: I0ab4105aa201662c429c3495e8d865449b3554ea
|
|
|
12a457 |
Reviewed on: http://review.gluster.org/13678
|
|
|
12a457 |
BUG: 1294062
|
|
|
12a457 |
Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
12a457 |
Reviewed-on: http://review.gluster.org/13679
|
|
|
12a457 |
Smoke: Gluster Build System <jenkins@build.gluster.com>
|
|
|
12a457 |
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
|
|
|
12a457 |
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
12a457 |
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
|
|
|
12a457 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/70906
|
|
|
12a457 |
Reviewed-by: Aravinda Vishwanathapura Krishna Murthy <avishwan@redhat.com>
|
|
|
12a457 |
Tested-by: Aravinda Vishwanathapura Krishna Murthy <avishwan@redhat.com>
|
|
|
12a457 |
---
|
|
|
12a457 |
xlators/storage/posix/src/posix-helpers.c | 3 +++
|
|
|
12a457 |
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
|
12a457 |
|
|
|
12a457 |
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
|
|
|
12a457 |
index c2da976..ba42272 100644
|
|
|
12a457 |
--- a/xlators/storage/posix/src/posix-helpers.c
|
|
|
12a457 |
+++ b/xlators/storage/posix/src/posix-helpers.c
|
|
|
12a457 |
@@ -749,6 +749,9 @@ _handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum,
|
|
|
12a457 |
if (posix_special_xattr (marker_xattrs, key))
|
|
|
12a457 |
goto next;
|
|
|
12a457 |
|
|
|
12a457 |
+ if (!fnmatch (GF_XATTR_STIME_PATTERN, key, 0))
|
|
|
12a457 |
+ goto next;
|
|
|
12a457 |
+
|
|
|
12a457 |
if (dict_get (filler->xattr, key))
|
|
|
12a457 |
goto next;
|
|
|
12a457 |
|
|
|
12a457 |
--
|
|
|
12a457 |
1.7.1
|
|
|
12a457 |
|