From 528cbf0ef1b8cbabbab5141df69353d7cf9f59f5 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 13 Jun 2013 14:51:46 +0000 Subject: glusterd: remove-brick:Allow simultaneous removal of multiple subvolumes. Currently, remove-brick supports removal of only one distributed stripe/ replica pair at a time. Fix it to support removal of multiple pairs. This is consistent with add-brick behaviour which supports adding multiple stripe/replica pairs simultaneously. Removal is successful irrespective of the order of the bricks given at the CLI, as long as the bricks are from the same subvolume(s). Change-Id: I7c11c1235ce07b124155978b9d48d0ea65396103 BUG: 974007 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/5210 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi --- tests/volume.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 02892d715..470fe9a7c 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -31,7 +31,9 @@ function rebalance_status_field { } function remove_brick_status_completed_field { - $CLI volume remove-brick $V0 $H0:$B0/r2d2_{4,5} status | awk '{print $7}' | sed -n 3p + local vol=$1 + local brick_list=$2 + $CLI volume remove-brick $vol $brick_list status | awk '{print $7}' | sed -n 3p } function get_mount_process_pid { -- cgit