[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v12 10/10] iotest 134: test cluster-misaligned encry
From: |
Anton Nefedov |
Subject: |
[Qemu-devel] [PATCH v12 10/10] iotest 134: test cluster-misaligned encrypted write |
Date: |
Mon, 14 Jan 2019 11:18:31 +0000 |
COW (even empty/zero) areas require encryption too
Signed-off-by: Anton Nefedov <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
---
tests/qemu-iotests/134 | 9 +++++++++
tests/qemu-iotests/134.out | 10 ++++++++++
2 files changed, 19 insertions(+)
diff --git a/tests/qemu-iotests/134 b/tests/qemu-iotests/134
index cacabcd28b..792c8ca12f 100755
--- a/tests/qemu-iotests/134
+++ b/tests/qemu-iotests/134
@@ -57,6 +57,15 @@ echo
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
diff --git a/tests/qemu-iotests/134.out b/tests/qemu-iotests/134.out
index 972be49d91..09d46f6b17 100644
--- a/tests/qemu-iotests/134.out
+++ b/tests/qemu-iotests/134.out
@@ -5,6 +5,16 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
encryption=on encrypt.
read 134217728/134217728 bytes at offset 0
128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+== rewriting cluster part ==
+wrote 512/512 bytes at offset 512
+512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
+== verify pattern ==
+read 512/512 bytes at offset 0
+512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+read 512/512 bytes at offset 512
+512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+
== rewriting whole image ==
wrote 134217728/134217728 bytes at offset 0
128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
--
2.17.1
- [Qemu-devel] [PATCH v12 00/10] qcow2: cluster space preallocation, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 09/10] qcow2: skip writing zero buffers to empty COW areas, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 02/10] blkverify: set supported write/zero flags, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 04/10] block: introduce BDRV_REQ_ALLOCATE flag, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 08/10] block: support BDRV_REQ_ALLOCATE in passthrough drivers, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 01/10] mirror: inherit supported write/zero flags, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 07/10] file-posix: support BDRV_REQ_ALLOCATE, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 03/10] quorum: set supported write flags, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 06/10] file-posix: reset fallocate-related flags without CONFIG_FALLOCATE*, Anton Nefedov, 2019/01/14
- [Qemu-devel] [PATCH v12 10/10] iotest 134: test cluster-misaligned encrypted write,
Anton Nefedov <=
- [Qemu-devel] [PATCH v12 05/10] block: treat BDRV_REQ_ALLOCATE as serialising, Anton Nefedov, 2019/01/14