summaryrefslogtreecommitdiffstats
path: root/tests/bugs/readdir-ahead/bug-1439640.t
blob: dcd54076444444dc69f65cf1d2dac45bef4be4af (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
#!/bin/bash

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

cleanup;

TEST glusterd

TEST $CLI volume create $V0 $H0:$B{0..1}/$V0
TEST $CLI volume set $V0 readdir-ahead on
TEST $CLI volume start $V0

TEST ! $CLI volume set $V0 parallel-readdir sdf

TEST $CLI volume set $V0 parallel-readdir off
TEST $CLI volume set $V0 parallel-readdir on

TEST ! $CLI volume set $V0 rda-cache-limit 0
TEST ! $CLI volume set $V0 rda-cache-limit -634
TEST ! $CLI volume set $V0 rda-cache-limit 87adh
TEST ! $CLI volume set $V0 parallel-readdir sdf

TEST ! $CLI volume set $V0 rda-request-size 0
TEST ! $CLI volume set $V0 rda-request-size -634
TEST ! $CLI volume set $V0 rda-request-size 87adh

TEST $CLI volume set $V0 rda-cache-limit 10MB
TEST $CLI volume set $V0 rda-request-size 128KB

cleanup;