3
. $(dirname $0)/../include.rc
7
function file_has_linkfile()
11
while [ $i -lt $BRICK_COUNT ]
13
stat=`stat $B0/${V0}$i/$1 2>/dev/null`
25
function get_cached_brick()
30
test=`getfattr -n trusted.glusterfs.dht.linkto -e text $B0/${V0}$BRICK$i 2>&1`
45
TEST $CLI volume create $V0 $H0:$B0/${V0}0 $H0:$B0/${V0}1 $H0:$B0/${V0}2
46
TEST $CLI volume start $V0
49
TEST glusterfs --attribute-timeout=0 --entry-timeout=0 -s $H0 --volfile-id $V0 $M0;
51
## create a linkfile on subvolume 0
57
if [ $has_link -eq 2 ]
61
# Kill a brick process
62
kill -9 `cat /var/lib/glusterd/vols/$V0/run/$H0-d-backends-${V0}$CACHED.pid`;
66
ls -l $M0/2 2>/dev/null
68
## fail dd if file exists.
70
dd if=/dev/zero of=$M0/2 bs=1 count=1 conv=excl 2>/dev/null