From 94fba5e1b2c1290ac0375f4ef346a12734e2e1b5 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 24 Jan 2012 17:33:52 +0530 Subject: 765590: check if adding brick to a stripe volume crashes glusterd Change-Id: I76e26133a96de75533131ea5c05b11c17644f655 BUG: 765590 Signed-off-by: Raghavendra Bhat --- dvm/765590/testcase | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 dvm/765590/testcase diff --git a/dvm/765590/testcase b/dvm/765590/testcase new file mode 100755 index 0000000..8d56203 --- /dev/null +++ b/dvm/765590/testcase @@ -0,0 +1,20 @@ +#!/bin/bash + +function _init () +{ + source $cwd/regression_helpers; +} + +function glusterd_stripe_add () +{ + $GLUSTERFSDIR/gluster volume create --mode=script $global_bug_id stripe 2 $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null; + + $GLUSTERFSDIR/gluster volume add-brick $global_bug_id stripe 3 $(hostname):$EXPORT_DIR/$global_bug_id/export3 &>/dev/null; + + pgrep glusterd &>/dev/null; + if [ $? -ne 0 ]; then + return 1; + fi +} + +_init ; glusterd_stripe_add \ No newline at end of file -- cgit