summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cluster.rc')
-rw-r--r--tests/cluster.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc
index d210ca2932e..467bbcb06e1 100644
--- a/tests/cluster.rc
+++ b/tests/cluster.rc
@@ -170,3 +170,10 @@ function volinfo_field_2()
$CLI_2 volume info $vol | grep "^$field: " | sed 's/.*: //';
}
+
+function brick_up_status_1 {
+ local vol=$1
+ local host=$2
+ local brick=$3
+ $CLI_1 volume status $vol $host:$brick --xml | sed -ne 's/.*<status>\([01]\)<\/status>/\1/p'
+}