summaryrefslogtreecommitdiffstats
path: root/tests/bugs/distribute/issue-1327.t
blob: acd8c8c661473ecdd7abcce4e8aeddbce85dc560 (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
#!/bin/bash

SCRIPT_TIMEOUT=250

. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
. $(dirname $0)/../../dht.rc

cleanup

TEST glusterd
TEST pidof glusterd

BRICK1=$B0/${V0}-0
BRICK2=$B0/${V0}-1

TEST $CLI volume create $V0 $H0:$BRICK1 $H0:$BRICK2
TEST $CLI volume start $V0

TEST glusterfs -s $H0 --volfile-id $V0 $M0
TEST mkdir $M0/dir

#remove dir from one of the brick
TEST rmdir $BRICK2/dir

#safe cache timeout for lookup to be triggered
sleep 2

TEST ls $M0/dir

TEST stat $BRICK2/dir

cleanup