blob: 7d62827bbe6180cfaa4c1b02eb11c031b2867968 (
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
|
#!/usr/bin/env bash
. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/bcache-test-libs.sh
config-cache 512M
config-backing 512M,512M
config-bucket-size 64k
config-block-size 4k
config-writeback
config-timeout $(stress_timeout)
test_main()
{
setup_tracing 'bcache:*'
setup_bcache
for dir in /sys/fs/bcache/*/internal /sys/fs/bcache/*/bdev*; do
if [ ! -f $dir/verify ]; then
exit 0
fi
echo 1 > $dir/verify
done
run_antagonist
run_bcache_stress
stop_bcache
}
main "$@"
|