#!/bin/bash function _init () { source $cwd/regression_helpers; } function dist_stripe_repl () { $GLUSTERFSDIR/gluster volume create --mode=script $global_bug_id stripe 2 replica 2 \ $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 \ $(hostname):$EXPORT_DIR/$global_bug_id/export3 $(hostname):$EXPORT_DIR/$global_bug_id/export4 \ $(hostname):$EXPORT_DIR/$global_bug_id/export5 $(hostname):$EXPORT_DIR/$global_bug_id/export6 \ $(hostname):$EXPORT_DIR/$global_bug_id/export7 $(hostname):$EXPORT_DIR/$global_bug_id/export8 2>/dev/null 1>/dev/null; pgrep glusterd 2>/dev/null 1>/dev/null; ret=$?; return $ret; } function main () { local ret; dist_stripe_repl; ret=$?; if [ $ret -eq 0 ]; then exit 0; else exit 1; fi } _init && main "$@"