blob: c7ee637f0b21796b4cdba5496043f40a849a7b6d (
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
|
#!/bin/bash
#
# Test basic readdir-ahead functionality. Verify that readdir-ahead can be
# enabled, create a set of files and run some ls tests.
#
###
. $(dirname $0)/../include.rc
cleanup;
TEST glusterd
TEST $CLI volume create $V0 $H0:$B0/$V0
TEST $CLI volume start $V0
TEST $CLI volume set $V0 readdir-ahead on
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
TEST mkdir $M0/test
for i in $(seq 0 99)
do
touch $M0/test/$i
done
count=`ls -1 $M0/test | wc -l`
TEST [ $count -eq 100 ]
count=`ls -1 $M0/test | wc -l`
TEST [ $count -eq 100 ]
TEST rm -rf $M0/test/*
count=`ls -1 $M0/test | wc -l`
TEST [ $count -eq 0 ]
TEST rmdir $M0/test
TEST umount -l $M0;
TEST $CLI volume stop $V0
TEST $CLI volume delete $V0
cleanup;
|