summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 11ef9939d4d..36336266d5c 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -19,6 +19,14 @@ function online_brick_count ()
pgrep glusterfsd | wc -l
}
+function brick_up_status {
+ local vol=$1
+ local host=$2
+ local brick=$3
+ brick_pid=$(get_brick_pid $vol $host $brick)
+ gluster volume status | grep $brick_pid | awk '{print $4}'
+}
+
function volume_option()
{
local vol=$1