summaryrefslogtreecommitdiff
path: root/tests/bcache/flash_dev.ktest
blob: fe8d59e0b9fab3af05696311d063f239c6b7420c (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
#!/bin/bash

. $(dirname $(readlink -e ${BASH_SOURCE[0]}))/bcache-test-libs.sh

# XXX possibly broken with 1 mb buckets
config-cache 2150MB
config-bucket-size 2M

#config-cache 2G
#config-bucket-size 512k

config-block-size 2k
config-volume 1800M

config-timeout $(stress_timeout)

test_main()
{
    echo 1 > /sys/module/bcache/parameters/debug_check_bkeys
    setup_tracing 'bcache:*'

    setup_bcache
    #existing_bcache

    run_antagonist
    run_bcache_stress
    #run_fio

    stop_bcache
}