tests/qemu: Make the isolation tests more read and write heavy.

Do more reading of the backing file data, and more writes to the
overlay.
This commit is contained in:
Richard W.M. Jones
2017-09-13 10:06:34 +01:00
parent 52be0a6c50
commit 4c474aba91
3 changed files with 12 additions and 0 deletions

View File

@@ -36,10 +36,14 @@ add-drive-opts $f format:raw readonly:true
run
# Read some of the backing file to ensure reads don't modify it.
download-offset /dev/sda - 10M 10M | cat >/dev/null
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
write /test This_is_a_test
fill-pattern abc 5M /test2
# Really try hard to force writes to the disk.
umount-all

View File

@@ -36,10 +36,14 @@ add-drive-ro $f
run
# Read some of the backing file to ensure reads don't modify it.
download-offset /dev/sda - 10M 10M | cat >/dev/null
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
write /test This_is_a_test
fill-pattern abc 5M /test2
# Really try hard to force writes to the disk.
umount-all

View File

@@ -38,10 +38,14 @@ add-drive-opts $f format:qcow2 readonly:true
run
# Read some of the backing file to ensure reads don't modify it.
download-offset /dev/sda - 10M 10M | cat >/dev/null
part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
write /test This_is_a_test
fill-pattern abc 5M /test2
# Really try hard to force writes to the disk.
umount-all