summaryrefslogtreecommitdiffstats
path: root/dvm/2616/testcase
blob: a5f79b59dbd7c10f9a0d0d63ad1a1d7edb1c7292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

source $cwd/regression_helpers

$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null;

$GLUSTERFSDIR/gluster volume profile $global_bug_id start | grep "Starting volume profile on $global_bug_id has been successful" 2>/dev/null 1>/dev/null;
temp=$?;

$GLUSTERFSDIR/gluster volume profile $global_bug_id stop | grep "Stopping volume profile on $global_bug_id has been successful" 2>/dev/null 1>/dev/null;
temp1=$?;

if [ $temp -eq 0 ] && [ $temp1 -eq 0 ]; then
	exit 0;
else
	exit 1;
fi