summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@gluster.com>2011-11-23 12:52:04 +0530
committerVijay Bellur <vijay@gluster.com>2011-12-28 03:17:13 -0800
commite1f6ebc1a41d1759c2c4ec1d81a9b8a777b7a25d (patch)
treea498192949f08d6d19290b12cd9104a44a885877
parent8be9b0502843b755adad7badfc4e144cf7c410f6 (diff)
rebalance: remove the *.fix.layout xattr from trusted domain.
moving trusted.distribute.fix.layout from trusted domain. Change-Id: If4317e4320998bbd739a8472b8814d75c425d341 BUG: 765487 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/747 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
-rw-r--r--xlators/cluster/dht/src/dht-common.h2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h
index c1b9364ba72..791cf633507 100644
--- a/xlators/cluster/dht/src/dht-common.h
+++ b/xlators/cluster/dht/src/dht-common.h
@@ -29,7 +29,7 @@
#ifndef _DHT_H
#define _DHT_H
-#define GF_XATTR_FIX_LAYOUT_KEY "trusted.distribute.fix.layout"
+#define GF_XATTR_FIX_LAYOUT_KEY "distribute.fix.layout"
#define GF_DHT_LOOKUP_UNHASHED_ON 1
#define GF_DHT_LOOKUP_UNHASHED_AUTO 2
#define DHT_PATHINFO_HEADER "DISTRIBUTE:"
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 08865f38f18..a7bac2450d9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -235,7 +235,7 @@ gf_glusterd_rebalance_fix_layout (glusterd_volinfo_t *volinfo, const char *dir)
if (S_ISDIR (stbuf.st_mode)) {
/* Fix the layout of the directory */
/* TODO: isn't error code not important ? */
- sys_lsetxattr (full_path, "trusted.distribute.fix.layout",
+ sys_lsetxattr (full_path, "distribute.fix.layout",
"yes", 3, 0);
volinfo->defrag->total_files += 1;
@@ -285,7 +285,7 @@ glusterd_defrag_start (void *data)
}
/* Fix the root ('/') first */
- sys_lsetxattr (defrag->mount, "trusted.distribute.fix.layout",
+ sys_lsetxattr (defrag->mount, "distribute.fix.layout",
"yes", 3, 0);
if ((defrag->cmd == GF_DEFRAG_CMD_START) ||