summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-08-09 05:38:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-11 22:24:32 -0700
commit0b501ac95edc0ef5945228eb47e6482cfc4efa41 (patch)
tree58fa16eb100868a65e754f704b2a19817250ca91 /extras
parent6ff316dca7c9eebab14e71b6ad0908c2e45a5ee2 (diff)
'gluster volume rebalance' related fixes
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1307 (gluster volume defrag <VOLNAME> status) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1307
Diffstat (limited to 'extras')
-rw-r--r--extras/glusterfs-defrag.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/glusterfs-defrag.in b/extras/glusterfs-defrag.in
index 8bdaf3d8252..68a393f1c3a 100644
--- a/extras/glusterfs-defrag.in
+++ b/extras/glusterfs-defrag.in
@@ -12,7 +12,10 @@
set -e;
-added_bricks="node1:/gfs/export1"
+#
+#added_bricks="node1:/gfs/export1"
+#
+added_bricks=""
CP="cp"
MV="mv"
@@ -53,6 +56,8 @@ relocate_file()
return;
fi
+ size=$(stat -c '%s' "$path");
+
# If there are some entries in added_bricks, then check
# if the link file is present on those nodes, if not,
# set flag=1, so full defrag happens