diff options
author | Anton Nefedov <anton.nefedov@virtuozzo.com> | 2019-05-16 17:30:28 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2019-06-24 15:53:01 +0200 |
commit | 6ec889eb85c8fe96827c57e3900d8a1079554f3d (patch) | |
tree | 8c67afb20d79250ce23efae086eec24a392e13b3 /tests/qemu-iotests/134 | |
parent | 85c9d133fb53ff098505ad03f139a3f4c99be863 (diff) | |
download | qemu-6ec889eb85c8fe96827c57e3900d8a1079554f3d.zip |
iotest 134: test cluster-misaligned encrypted write
COW (even empty/zero) areas require encryption too
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20190516143028.81155-1-anton.nefedov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/134')
-rwxr-xr-x | tests/qemu-iotests/134 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qemu-iotests/134 b/tests/qemu-iotests/134 index 141a2eaa7e..5f0fb86211 100755 --- a/tests/qemu-iotests/134 +++ b/tests/qemu-iotests/134 @@ -57,6 +57,15 @@ echo "== reading whole image ==" $QEMU_IO --object $SECRET -c "read 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testdir echo +echo "== rewriting cluster part ==" +$QEMU_IO --object $SECRET -c "write -P 0xb 512 512" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testdir + +echo +echo "== verify pattern ==" +$QEMU_IO --object $SECRET -c "read -P 0 0 512" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testdir +$QEMU_IO --object $SECRET -c "read -P 0xb 512 512" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testdir + +echo echo "== rewriting whole image ==" $QEMU_IO --object $SECRET -c "write -P 0xa 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testdir |