From 0b501ac95edc0ef5945228eb47e6482cfc4efa41 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 9 Aug 2010 05:38:46 +0000 Subject: 'gluster volume rebalance' related fixes Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1307 (gluster volume defrag status) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1307 --- extras/glusterfs-defrag.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extras') 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 -- cgit