summaryrefslogtreecommitdiff
path: root/tests/bcache/flash_dev_enospc.ktest
blob: 10270c46ea71293851c827bd20373fa5ff25173d (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
#!/usr/bin/env bash

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

config-cache 512M
config-bucket-size 64k
config-block-size 4k

config-volume 1400M

config-timeout $(stress_timeout)

test_main()
{
    setup_tracing 'bcache:*'

    setup_bcache
    run_antagonist

    # Should fail since volume is too big
    ! run_fio

    echo 300M > /sys/fs/bcache/*/volume0/size

    run_fio
    stop_bcache
}