d1681e
From 9034056db634852d74423b8324c78ed058d028ba Mon Sep 17 00:00:00 2001
d1681e
From: Kotresh HR <khiremat@redhat.com>
d1681e
Date: Tue, 10 Oct 2017 10:27:01 -0400
d1681e
Subject: [PATCH 089/128] geo-rep: Filter out volume-mark xattr
d1681e
d1681e
The volume-mark xattr, maintained at brick root
d1681e
of slave volume is specific to geo-replication
d1681e
and should be filtered out for all other clients.
d1681e
It should also be filtered out from list getxattr
d1681e
from all mounts including geo-rep mount as it
d1681e
might cause rsync to read and set.
d1681e
d1681e
Backport of:
d1681e
> Change-Id: If9eb5a3af18051083c853e70d93b2819e8eea222
d1681e
> BUG: 1500433
d1681e
> Patch: https://review.gluster.org/18479
d1681e
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
d1681e
d1681e
BUG: 1476876
d1681e
Change-Id: If9eb5a3af18051083c853e70d93b2819e8eea222
d1681e
Signed-off-by: Kotresh HR <khiremat@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/124531
d1681e
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d1681e
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
d1681e
---
d1681e
 xlators/storage/posix/src/posix-helpers.c | 1 +
d1681e
 1 file changed, 1 insertion(+)
d1681e
d1681e
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
d1681e
index 18999f0..f97c90b 100644
d1681e
--- a/xlators/storage/posix/src/posix-helpers.c
d1681e
+++ b/xlators/storage/posix/src/posix-helpers.c
d1681e
@@ -111,6 +111,7 @@ posix_handle_georep_xattrs (call_frame_t *frame, const char *name,
d1681e
         static const char *georep_xattr[]   = { "*.glusterfs.*.stime",
d1681e
                                                 "*.glusterfs.*.xtime",
d1681e
                                                 "*.glusterfs.*.entry_stime",
d1681e
+                                                "*.glusterfs.volume-mark.*",
d1681e
                                                 NULL
d1681e
                                               };
d1681e
         if (frame && frame->root) {
d1681e
-- 
d1681e
1.8.3.1
d1681e