[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 3/8] iotest 134: test cluster-misaligned encrypted wr
From: |
Max Reitz |
Subject: |
[Qemu-block] [PULL 3/8] iotest 134: test cluster-misaligned encrypted write |
Date: |
Fri, 21 Jun 2019 15:23:19 +0200 |
From: Anton Nefedov <address@hidden>
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>
Message-id: address@hidden
Signed-off-by: Max Reitz <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 141a2eaa7e..5f0fb86211 100755
--- a/tests/qemu-iotests/134
+++ b/tests/qemu-iotests/134
@@ -56,6 +56,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.21.0
- [Qemu-block] [PULL 0/8] Block patches, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 1/8] nvme: do not advertise support for unsupported arbitration mechanism, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 2/8] blockdev: enable non-root nodes for transaction drive-backup source, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 4/8] vmdk: Fix comment regarding max l1_size coverage, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 3/8] iotest 134: test cluster-misaligned encrypted write,
Max Reitz <=
- [Qemu-block] [PULL 6/8] vmdk: Add read-only support for seSparse snapshots, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 7/8] ssh: switch from libssh2 to libssh, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 5/8] vmdk: Reduce the max bound for L1 table size, Max Reitz, 2019/06/21
- [Qemu-block] [PULL 8/8] iotests: Fix 205 for concurrent runs, Max Reitz, 2019/06/21
- Re: [Qemu-block] [PULL 0/8] Block patches, Peter Maydell, 2019/06/23