blob: 3804f304f4001bffe9a1e404794b43737930e2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/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 "$@"
|