diff options
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rebalance.c | 8 | 
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,  | 
