summaryrefslogtreecommitdiff
path: root/tests/bcache
diff options
context:
space:
mode:
authorSlava Pestov <sp@daterainc.com>2015-01-22 00:38:27 -0800
committerSlava Pestov <sp@daterainc.com>2015-01-22 01:32:55 -0800
commit9fc91efd6ff9d0fe0df25e4579a38baaaca6efb5 (patch)
treec57b09a67a41302361c376b8e01c2a084387ef69 /tests/bcache
parent0a257155a05a8f4d4d2044a9573e7b4c69ce5242 (diff)
Better read-only test for reproducing DAT-1845
Change-Id: I26d914f0a8eaad4b7a294da4cb9c70c7c06dd42c
Diffstat (limited to 'tests/bcache')
-rwxr-xr-xtests/bcache/bcache_device_read_only.ktest4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bcache/bcache_device_read_only.ktest b/tests/bcache/bcache_device_read_only.ktest
index 641481a..63d5952 100755
--- a/tests/bcache/bcache_device_read_only.ktest
+++ b/tests/bcache/bcache_device_read_only.ktest
@@ -19,6 +19,10 @@ main()
if [ $NR_REBOOTS = 0 ]; then
setup_bcache
+ echo readonly > /sys/fs/bcache/*/cache1/state
+ echo readonly > /sys/fs/bcache/*/cache2/state
+ echo active > /sys/fs/bcache/*/cache1/state
+ echo active > /sys/fs/bcache/*/cache2/state
test_fio
echo readonly > /sys/fs/bcache/*/cache2/state
echo > /sys/fs/bcache/*/internal/trigger_gc