qemu-irix/tests/qemu-iotests
Daniel P. Berrange 8b7cdba386 crypto: fix handling of iv generator hash defaults
When opening an existing LUKS volume, if the iv generator is
essiv, then the iv hash algorithm is mandatory to provide. We
must report an error if it is omitted in the cipher mode spec,
not silently default to hash 0 (md5).  If the iv generator is
not essiv, then we explicitly ignore any iv hash algorithm,
rather than report an error, for compatibility with dm-crypt.

When creating a new LUKS volume, if the iv generator is essiv
and no iv hsah algorithm is provided, we should default to
using the sha256 hash.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-07-04 10:46:59 +01:00
..
sample_images block/vpc: tests for auto-detecting VPC and Hyper-V VHD images 2016-03-14 16:46:42 +01:00
.gitignore
001 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
001.out
002 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
002.out
003 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
003.out
004 block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
004.out
005 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
005.out
007 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
007.out
008 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
008.out
009 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
009.out
010 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
010.out
011 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
011.out
012 block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
012.out
013 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
013.out
014 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
014.out
015 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
015.out
017 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
017.out
018 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
018.out
019 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
019.out
020 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
020.out
021 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
021.out
022 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
022.out
023 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
023.out qemu-io: Allow unaligned access by default 2016-05-12 15:33:24 +02:00
024 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
024.out
025 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
025.out
026 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
026.out
026.out.nocache iotests: fix the broken 026.nocache output 2016-04-12 18:06:51 +02:00
027 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
027.out
028 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
028.out
029 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
029.out
030 qemu-iotests: add no-op streaming test 2016-03-28 13:56:44 -04:00
030.out qemu-iotests: add no-op streaming test 2016-03-28 13:56:44 -04:00
031 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
031.out
032 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
032.out
033 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
033.out block: Fix blk_aio_write_zeroes() 2016-04-15 17:22:11 +02:00
034 block: Switch bdrv_write_zeroes() to byte interface 2016-06-08 10:21:08 +02:00
034.out
035 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
035.out
036 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
036.out qapi: Drop QERR_UNKNOWN_BLOCK_FORMAT_FEATURE 2016-03-17 15:47:56 +01:00
037 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
037.out
038 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
038.out
039 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
039.out block: add support for --image-opts in block I/O tests 2016-05-12 15:33:24 +02:00
040
040.out
041 iotests: add small-granularity mirror test 2016-06-28 22:53:03 -04:00
041.out iotests: add small-granularity mirror test 2016-06-28 22:53:03 -04:00
042 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
042.out
043 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
043.out
044
044.out
045
045.out
046 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
046.out
047 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
047.out
048 block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
048.out block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
049 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
049.out block: move encryption deprecation warning into qcow code 2016-03-30 12:12:15 +02:00
050 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
050.out
051 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
051.out qemu-iotests: fix 051 on non-PC architectures 2016-04-12 18:07:39 +02:00
051.pc.out block: Remove BDRV_O_CACHE_WB 2016-03-30 12:16:03 +02:00
052 block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
052.out block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
053 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
053.out
054 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
054.out
055
055.out
056
056.out
057
057.out
058 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
058.out
059 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
059.out
060 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
060.out
061 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
061.out block: add support for --image-opts in block I/O tests 2016-05-12 15:33:24 +02:00
062 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
062.out
063 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
063.out
064 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
064.out
065
065.out
066 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
066.out
067 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
067.out qemu-iotests: 067: ignore QMP events 2016-02-22 16:54:14 +01:00
068 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
068.out
069 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
069.out
070 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
070.out
071 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
071.out
072 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
072.out
073 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
073.out
074
074.out
075 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
075.out
076 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
076.out
077 block/io: optimize bdrv_co_pwritev for small requests 2016-06-07 14:40:51 +01:00
077.out block/io: optimize bdrv_co_pwritev for small requests 2016-06-07 14:40:51 +01:00
078 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
078.out
079 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
079.out
080 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
080.out
081 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
081.out iotests: Correct 081's reference output 2016-03-14 17:35:06 +01:00
082 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
082.out
083 iotests: fix the redirection order in 083 2016-05-12 15:33:23 +02:00
083.out
084 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
084.out
085
085.out
086 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
086.out
087 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
087.out block: drop support for using qcow[2] encryption with system emulators 2016-06-16 15:19:55 +02:00
088 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
088.out
089 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
089.out
090 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
090.out
091
091.out
092 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
092.out
093 qemu-iotests: Extend iotest 093 to test bursts 2016-02-22 14:08:06 +01:00
093.out qemu-iotests: Extend iotest 093 to test bursts 2016-02-22 14:08:06 +01:00
094 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
094.out
095 iotests: 095: Clean up QEMU before showing image info 2016-06-16 15:20:37 +02:00
095.out
096 block: Don't return throttling info in query-named-block-nodes 2016-05-19 16:45:31 +02:00
096.out
097 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
097.out
098 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
098.out
099 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
099.out
101 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
101.out
102 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
102.out
103 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
103.out
104 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
104.out
105 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
105.out
107 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
107.out
108 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
108.out
109 qemu-iotests: Simplify 109 with unaligned qemu-img compare 2016-05-19 16:56:58 +02:00
109.out qemu-iotests: Simplify 109 with unaligned qemu-img compare 2016-05-19 16:56:58 +02:00
110 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
110.out
111 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
111.out
112 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
112.out
113 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
113.out
114 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
114.out
115 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
115.out
116 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
116.out
117 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
117.out
118
118.out
119 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
119.out
120 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
120.out
121 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
121.out
122 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
122.out qemu-img: Fix preallocation with -S 0 for convert 2016-03-30 12:16:03 +02:00
123 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
123.out
124 iotests/124: Add cluster_size mismatch test 2016-02-29 14:55:14 -05:00
124.out iotests/124: Add cluster_size mismatch test 2016-02-29 14:55:14 -05:00
128 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
128.out
129
129.out
130 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
130.out
131 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
131.out
132
132.out
133 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
133.out
134 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
134.out block: move encryption deprecation warning into qcow code 2016-03-30 12:12:15 +02:00
135 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
135.out
136 qemu-iotests: Fix regression in 136 on aio_read invalid 2016-05-19 16:56:58 +02:00
136.out block: Remove bdrv_aio_multiwrite() 2016-05-19 16:45:31 +02:00
137 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
137.out block: add support for --image-opts in block I/O tests 2016-05-12 15:33:24 +02:00
138 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
138.out
139
139.out
140 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
140.out qemu-iotests: 140: don't use IDE device 2016-02-22 16:54:14 +01:00
141 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
141.out
142 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
142.out block: Remove BDRV_O_CACHE_WB 2016-03-30 12:16:03 +02:00
143 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
143.out
144
144.out
145 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
145.out block: Fix -incoming with snapshot=on 2016-02-22 09:49:46 +01:00
146 block/vpc: add tests for image creation force_size parameter 2016-03-14 16:46:42 +01:00
146.out block/vpc: add tests for image creation force_size parameter 2016-03-14 16:46:42 +01:00
148 qemu-iotests: 148: properly skip test if quorum support is missing 2016-04-12 18:07:39 +02:00
148.out iotests: Test QUORUM_REPORT_BAD in fifo mode 2016-03-17 16:43:30 +01:00
149 crypto: fix handling of iv generator hash defaults 2016-07-04 10:46:59 +01:00
149.out crypto: fix handling of iv generator hash defaults 2016-07-04 10:46:59 +01:00
150 qemu-iotests: tests: do not set unused tmp variable 2016-04-15 17:56:56 +02:00
150.out iotests: Make 150 use qemu-img map instead of du 2016-04-12 18:06:51 +02:00
152 iotests: Test case for drive-mirror with unaligned image size 2016-04-20 16:52:55 +02:00
152.out iotests: Test case for drive-mirror with unaligned image size 2016-04-20 16:52:55 +02:00
154 block: Switch bdrv_write_zeroes() to byte interface 2016-06-08 10:21:08 +02:00
154.out qcow2: Catch more unaligned write_zero into zero cluster 2016-06-08 10:21:08 +02:00
155 iotests: Add test for post-mirror backing chains 2016-06-16 15:20:37 +02:00
155.out iotests: Add test for post-mirror backing chains 2016-06-16 15:20:37 +02:00
156 iotests: Add test for oVirt-like storage migration 2016-06-16 15:20:37 +02:00
156.out iotests: Add test for oVirt-like storage migration 2016-06-16 15:20:37 +02:00
COPYING
Makefile
README doc: Fix mailing list address in tests/qemu-iotests/README 2016-06-16 15:19:55 +02:00
check qemu-iotests: check: don't place files with predictable names in /tmp 2016-04-12 18:07:39 +02:00
common block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
common.config block: add support for encryption secrets in block I/O tests 2016-05-12 15:33:24 +02:00
common.filter block: add support for encryption secrets in block I/O tests 2016-05-12 15:33:24 +02:00
common.pattern
common.qemu
common.rc block: enable testing of LUKS driver with block I/O tests 2016-05-12 15:33:24 +02:00
group iotests: Add test for oVirt-like storage migration 2016-06-16 15:20:37 +02:00
iotests.py qemu-iotests: iotests: fail hard if not run via "check" 2016-05-12 15:33:24 +02:00
nbd-fault-injector.py
qcow2.py
qed.py
socket_scm_helper.c

README

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@nongnu.org with a CC:
to qemu-block@nongnu.org.