blob: d07651e46f6c7d2de7f34bee878019ba6104a5a3 (
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
40
41
42
43
44
45
46
|
#!/bin/bash
. $(dirname $0)/../include.rc
cleanup;
TEST glusterd
TEST pidof glusterd
TEST $CLI volume create $V0 $H0:$B0/$V0
TEST $CLI volume start $V0
TEST glusterfs -s $H0 --volfile-id $V0 $M0
TEST touch $M0/{1..10000}
RUN_LS_LOOP_FILE="$M0/run-ls-loop"
function ls-loop
{
while [ -f $RUN_LS_LOOP_FILE ]; do
ls -lR $M0 1>/dev/null 2>&1
done;
}
touch $RUN_LS_LOOP_FILE
ls-loop &
function vol-status-loop
{
for i in {1..1000}; do
$CLI volume status $V0 clients >/dev/null 2>&1
if [ $? -ne 0 ]; then
return 1
fi
done;
return 0
}
TEST vol-status-loop
rm -f $RUN_LS_LOOP_FILE
wait
TEST umount $M0
cleanup;
|