summaryrefslogtreecommitdiffstats
path: root/dvm/1535/testcase
blob: d7997495570ff51b648e2d87c2ac568cc2c09f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
source $cwd/regression_helpers

VOLNAME="vol$global_bug_id";

$GLUSTERFSDIR/gluster volume create $VOLNAME $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null;

VOLTYPE=`$GLUSTERFSDIR/gluster volume info $VOLNAME | grep Type | cut -d ' ' -f2`

if [ "$VOLTYPE" == "Distribute" ]; then
   RET="0";
else
   RET="1";
fi

exit $RET;