#!/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