summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-10-17 22:37:36 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-17 23:35:40 -0700
commit449f31c8ae8f1e6df787cfc1d1203ba7f0312cb6 (patch)
tree4de91ca93d7ae3b518dfd83da93723a377d0d392
parent2f93dbc3a6c450344b08f041e6f269f659764007 (diff)
glusterd rebalance: ignore 'selinux' xattrsv3.2.5qa1
Change-Id: I145c12f529459f5c10ba1b8a28cb64ac07d2d2a9 BUG: 3721 Reviewed-on: http://review.gluster.com/605 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index ac1e3d4c9bd..1e63ada9375 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -69,6 +69,14 @@ migrate_xattrs_of_file (int src, int dst)
while (size > size_processed) {
key = &list[size_processed];
+
+ /* SELinux setting happens from backend filesystem itself,
+ don't try to copy it */
+ if (strcmp (key, "security.selinux") == 0) {
+ size_processed += strlen (key) + 1;
+ continue;
+ }
+
len = fgetxattr (src, key, value, 4096);
if (len < 0) {
gf_log (THIS->name, GF_LOG_ERROR,