qemu-e2k/tests/qemu-iotests
Vladimir Sementsov-Ogievskiy 2c060c0f50 block/vpc: return ZERO block-status when appropriate
In case when get_image_offset() returns -1, we do zero out the
corresponding chunk of qiov. So, this should be reported as ZERO.

Note that this changes visible output of "qemu-img map --output=json"
and "qemu-io -c map" commands. For qemu-img map, the change is obvious:
we just mark as zero what is really zero. For qemu-io it's less
obvious: what was unallocated now is allocated.

There is an inconsistency in understanding of unallocated regions in
Qemu: backing-supporting format-drivers return 0 block-status to report
go-to-backing logic for this area. Some protocol-drivers (iscsi) return
0 to report fs-unallocated-non-zero status (i.e., don't occupy space on
disk, read result is undefined).

BDRV_BLOCK_ALLOCATED is defined as something more close to
go-to-backing logic. Still it is calculated as ZERO | DATA, so 0 from
iscsi is treated as unallocated. It doesn't influence backing-chain
behavior, as iscsi can't have backing file. But it does influence
"qemu-io -c map".

We should solve this inconsistency at some future point. Now, let's
just make backing-not-supporting format drivers (vdi in the previous
patch and vpc now) to behave more like backing-supporting drivers
and not report 0 block-status. More over, returning ZERO status is
absolutely valid thing, and again, corresponds to how the other
format-drivers (backing-supporting) work.

After block-status update, it never reports 0, so setting
unallocated_blocks_are_zero doesn't make sense (as the only user of it
is bdrv_co_block_status and it checks unallocated_blocks_are_zero only
for unallocated areas). Drop it.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528094405.145708-5-vsementsov@virtuozzo.com>
[mreitz: qemu-io -c map as used by iotest 146 now reports everything as
         allocated; in order to make the test do something useful, we
         use qemu-img map --output=json now]
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-07-06 10:32:38 +02:00
..
sample_images
.gitignore
001 block: Comment cleanups 2020-05-05 13:17:36 +02:00
001.out
002 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
002.out
003 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
003.out
004
004.out
005 iotests: Provide a function for checking the creation of huge files 2019-12-18 11:20:57 +01:00
005.out
007 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
007.out
008
008.out
009 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
009.out
010 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
010.out
011 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
011.out
012
012.out
013
013.out
014 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
014.out
015 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
015.out
017 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
017.out
018 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
018.out
019 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
019.out
020 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
020.out
021
021.out
022
022.out
023
023.out
024 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
024.out
025
025.out
026 iotests/026: Move v3-exclusive test to new file 2020-03-24 12:05:31 +01:00
026.out iotests/026: Move v3-exclusive test to new file 2020-03-24 12:05:31 +01:00
026.out.nocache iotests/026: Move v3-exclusive test to new file 2020-03-24 12:05:31 +01:00
027 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
027.out
028 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
028.out iotests/028: Fix for long $TEST_DIRs 2019-10-14 17:12:48 +02:00
029 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
029.out
030 iotests/030: Reduce run time by unthrottling job earlier 2020-05-18 19:05:25 +02:00
030.out iotests: Add read-only test case to 030 2019-07-15 15:48:40 +02:00
031 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
031.out qcow2: QcowHeaderExtension print names for extension magics 2020-06-09 15:47:10 -05:00
032 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
032.out
033 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
033.out
034 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
034.out
035 tests/qemu-iotests: Don't use 'seq' in the iotests 2019-07-23 15:53:25 +01:00
035.out
036 qcow2: Avoid feature name extension on small cluster size 2020-03-26 14:44:33 +01:00
036.out qcow2: QcowHeaderExtension print names for extension magics 2020-06-09 15:47:10 -05:00
037 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
037.out
038
038.out
039 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
039.out iotests/qcow2.py: Split feature fields into bits 2020-01-06 13:43:06 +01:00
040 iotests: Test error handling policies with block-commit 2020-02-18 10:53:56 +01:00
040.out iotests: Test error handling policies with block-commit 2020-02-18 10:53:56 +01:00
041 iotests/041: Skip test_small_target for qed 2020-06-17 16:21:21 +02:00
041.out iotests: Mirror with different source/target size 2020-05-18 19:05:25 +02:00
042
042.out
043 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
043.out
044 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
044.out
045 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
045.out
046 qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
046.out qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
047
047.out
048 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
048.out
049 block: Error out on image creation with conflicting size options 2019-12-18 11:20:57 +01:00
049.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
050 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
050.out
051 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
051.out Fixes: add read-zeroes to 051.out 2019-07-30 12:25:43 +02:00
051.pc.out iotests: Fix 051 output after qdev_init_nofail() removal 2020-07-03 10:06:29 +02:00
052 block: Comment cleanups 2020-05-05 13:17:36 +02:00
052.out
053 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
053.out
054
054.out
055 iotests/055: Use cache.no-flush for vmdk target 2020-05-08 13:26:35 +02:00
055.out iotests: Backup with different source/target size 2020-05-08 13:26:35 +02:00
056 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
056.out iotests: Test backup job with two guest writes 2019-08-06 13:17:17 +02:00
057 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
057.out
058 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
058.out
059 iotests: vmdk: Enable zeroed_grained=on by default 2020-05-08 13:26:35 +02:00
059.out iotests: Keep testing broken relative extent paths 2019-09-03 14:55:35 +02:00
060 qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
060.out qcow2: introduce compression type feature 2020-05-13 14:20:31 +02:00
061 qcow2: Allow resize of images with internal snapshots 2020-05-05 13:17:36 +02:00
061.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
062 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
062.out
063 iotests: Avoid cp/mv of test images 2020-01-06 13:43:07 +01:00
063.out iotests: Avoid cp/mv of test images 2020-01-06 13:43:07 +01:00
064
064.out
065 qcow2: introduce compression type feature 2020-05-13 14:20:31 +02:00
065.out
066 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
066.out
067 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
067.out
068 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
068.out
069 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
069.out
070
070.out
071 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
071.out
072 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
072.out
073 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
073.out
074 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
074.out
075
075.out
076
076.out
077
077.out
078
078.out
079 iotests: Replace IMGOPTS= by -o 2020-01-06 13:43:07 +01:00
079.out
080 qcow2: introduce compression type feature 2020-05-13 14:20:31 +02:00
080.out
081 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
081.out
082 iotests/082: require bochs 2020-05-08 13:26:35 +02:00
082.out block/qcow2: extend qemu-img amend interface with crypto options 2020-07-06 08:49:28 +02:00
083 iotests/083: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
083.out iotests/083: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
084
084.out
085 iotests: Fix cleanup path in some tests 2020-03-24 11:57:38 +01:00
085.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
086
086.out
087 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
087.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
088 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
088.out
089 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
089.out
090 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
090.out
091 iotests: handle tmpfs 2020-05-08 13:26:35 +02:00
091.out iotests: Make 091 work with data_file 2020-01-06 13:43:07 +01:00
092 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
092.out
093 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
093.out
094 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
094.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
095 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
095.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
096 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
096.out
097
097.out
098 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
098.out block: Use blk_make_empty() after commits 2020-05-18 19:05:25 +02:00
099 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
099.out
101
101.out
102
102.out
103 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
103.out
104
104.out
105 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
105.out
106 iotests: Replace IMGOPTS= by -o 2020-01-06 13:43:07 +01:00
106.out
107
107.out
108 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
108.out
109 iotests/109: Don't mirror with mismatched size 2020-05-18 19:05:24 +02:00
109.out iotests/109: Don't mirror with mismatched size 2020-05-18 19:05:24 +02:00
110 iotests: Make 110 work with data_file 2020-01-06 13:43:07 +01:00
110.out iotests: Make 110 work with data_file 2020-01-06 13:43:07 +01:00
111 iotests: Avoid qemu-img create 2020-01-06 13:43:07 +01:00
111.out
112 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
112.out iotests: Make _filter_img_create more active 2020-07-06 08:33:06 +02:00
113 iotests/113: mark bochs as required to support whitelisting 2020-05-08 13:26:35 +02:00
113.out
114 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
114.out
115 iotests: Replace IMGOPTS= by -o 2020-01-06 13:43:07 +01:00
115.out
116
116.out
117
117.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
118 iotests.py: Add skip_for_formats() decorator 2020-06-17 16:21:21 +02:00
118.out iotests/118: Add -blockdev based tests 2019-08-16 10:25:16 +02:00
119
119.out
120 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
120.out
121 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
121.out
122 iotests: Test convert -n -B to backing-less target 2020-02-20 16:43:42 +01:00
122.out iotests: Test convert -n -B to backing-less target 2020-02-20 16:43:42 +01:00
123 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
123.out
124 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
124.out iotests: Test incremental backup after truncation 2019-08-06 13:17:24 +02:00
125 qcow2: Fix preallocation on images with unaligned sizes 2020-07-06 08:33:06 +02:00
125.out qcow2: Fix preallocation on images with unaligned sizes 2020-07-06 08:33:06 +02:00
126 iotests: Disable 126 for flat vmdk subformats 2019-09-03 14:55:35 +02:00
126.out
127 iotests: Check for the availability of the required devices in 267 and 127 2020-02-06 13:47:45 +01:00
127.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
128
128.out
129 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
129.out
130
130.out
131
131.out
132 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
132.out
133
133.out
134 block: Comment cleanups 2020-05-05 13:17:36 +02:00
134.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
135
135.out
136 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
136.out
137 iotests: Make 137 work with data_file 2020-01-06 13:43:07 +01:00
137.out iotests: Make 137 work with data_file 2020-01-06 13:43:07 +01:00
138 iotests/138: Test leaks/corruptions fixed report 2020-03-26 14:52:43 +01:00
138.out iotests/138: Test leaks/corruptions fixed report 2020-03-26 14:52:43 +01:00
139 iotests: Remove the superfluous 2nd check for the availability of quorum 2020-02-20 16:43:42 +01:00
139.out
140 iotests/140: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
140.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
141 iotests: Make _filter_img_create more active 2020-07-06 08:33:06 +02:00
141.out blockdev: unify qmp_drive_backup and drive-backup transaction paths 2020-01-27 17:19:53 +01:00
142 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
142.out
143 nbd/server: Avoid long error message assertions CVE-2020-10761 2020-06-10 12:58:59 -05:00
143.out nbd/server: Avoid long error message assertions CVE-2020-10761 2020-06-10 12:58:59 -05:00
144 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
144.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
145
145.out
146 block/vpc: return ZERO block-status when appropriate 2020-07-06 10:32:38 +02:00
146.out block/vpc: return ZERO block-status when appropriate 2020-07-06 10:32:38 +02:00
147 iotests/147: Fix drive parameters 2020-02-20 16:43:42 +01:00
147.out
148 iotests/148: use skip_if_unsupported 2020-05-08 13:26:35 +02:00
148.out
149 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
149.out tests: fix I/O test for hosts defaulting to LUKSv2 2019-10-10 10:56:18 +02:00
150
150.out.qcow2 block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
150.out.raw block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
151 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
151.out iotests: Test unaligned blocking mirror write 2019-08-06 13:17:26 +02:00
152 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
152.out
153 iotests: Make _filter_img_create more active 2020-07-06 08:33:06 +02:00
153.out Fix iotest 153 2020-05-05 13:17:36 +02:00
154
154.out
155 iotests: use python logging for iotests.log() 2020-05-05 13:17:36 +02:00
155.out iotests: Add iothread cases to 155 2020-03-11 15:54:38 +01:00
156 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
156.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
157
157.out
158
158.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
159 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
159.out
160 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
160.out
161 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
161.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
162 iotests/162: Fix for newer Linux 5.3+ 2019-10-10 12:13:23 +02:00
162.out iotests/162: Fix for newer Linux 5.3+ 2019-10-10 12:13:23 +02:00
163 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
163.out
165 drop "from __future__ import print_function" 2020-02-07 15:15:16 +01:00
165.out iotests: add test-case to 165 to test reopening qcow2 bitmaps to RW 2019-10-17 17:02:32 -04:00
169 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
169.out iotests: add new test cases to bitmap migration 2019-11-26 14:18:01 +01:00
170 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
170.out
171
171.out
172 fdc: Reject clash between -drive if=floppy and -global isa-fdc 2020-06-23 16:07:07 +02:00
172.out qdev: Reject drive property override 2020-06-23 16:07:07 +02:00
173 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
173.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
174 iotests: Replace IMGOPTS='' by --no-opts 2020-01-06 13:43:07 +01:00
174.out
175 iotests: Replace IMGOPTS= by -o 2020-01-06 13:43:07 +01:00
175.out iotests: Test allocate_first_block() with O_DIRECT 2019-09-03 14:55:35 +02:00
176 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
176.out
177 qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
177.out
178 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
178.out.qcow2 qcow2: Expose bitmaps' size during measure 2020-05-28 13:16:16 -05:00
178.out.raw iotests: Fix test 178 2020-05-28 13:15:23 -05:00
179
179.out
181 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
181.out
182 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
182.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
183 iotests: Test 183 does not work on macOS and OpenBSD 2020-02-06 13:47:45 +01:00
183.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
184 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
184.out
185 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
185.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
186 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
186.out iotests: Set read-zeroes on in null block driver for Valgrind 2019-07-19 13:19:09 +02:00
187 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
187.out
188 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
188.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
189 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
189.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
190 iotests/{190,291}: compat=0.10 is unsupported 2020-06-17 16:21:21 +02:00
190.out qcow2: Expose bitmaps' size during measure 2020-05-28 13:16:16 -05:00
191 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
191.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
192 iotests/192: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
192.out iotests/192: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
194 iotests: 194: wait for migration completion on target too 2020-06-09 17:05:50 -05:00
194.out iotests: 194: wait for migration completion on target too 2020-06-09 17:05:50 -05:00
195 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
195.out
196 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
196.out
197 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
197.out
198 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
198.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
199 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
199.out
200 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
200.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
201 tests/qemu-iotests: use AIOMODE with various tests 2020-01-30 21:01:40 +00:00
201.out
202 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
202.out
203 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
203.out
204
204.out
205 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
205.out
206 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
206.out qcow2: introduce compression type feature 2020-05-13 14:20:31 +02:00
207 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
207.out
208 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
208.out
209 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
209.out
210 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
210.out
211 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
211.out
212 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
212.out
213 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
213.out
214 tests/iotests: be a little more forgiving on the size test 2020-02-25 20:20:09 +00:00
214.out tests/qemu-iotests: add case to write compressed data of multiple clusters 2020-01-06 13:43:07 +01:00
215 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
215.out
216 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
216.out
217 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
217.out
218 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
218.out iotests: Test quitting with job on throttled node 2019-07-19 15:17:55 +02:00
219 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
219.out blockdev: unify qmp_drive_backup and drive-backup transaction paths 2020-01-27 17:19:53 +01:00
220 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
220.out
221
221.out block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
222 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
222.out
223 iotests: Enhance 223 to cover qemu-img map improvements 2020-05-18 11:02:05 -05:00
223.out iotests: Enhance 223 to cover qemu-img map improvements 2020-05-18 11:02:05 -05:00
224 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
224.out
225 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
225.out
226
226.out
227 iotests: Set read-zeroes on in null block driver for Valgrind 2019-07-19 13:19:09 +02:00
227.out qapi: add unmap to BlockDeviceStats 2019-10-10 10:56:18 +02:00
228 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
228.out
229 iotests/229: data_file is unsupported 2020-06-17 16:21:21 +02:00
229.out iotests/229: Use blkdebug to inject an error 2020-05-18 19:05:24 +02:00
231
231.out
232 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
232.out
233
233.out nbd/client: Add hint when TLS is missing 2019-09-24 07:30:19 -05:00
234 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
234.out
235 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
235.out
236 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
236.out
237 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
237.out
238 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
238.out
239
239.out
240 iotests/240: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
240.out
241 iotests: Let common.nbd create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
241.out
242 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
242.out qcow2: introduce compression type feature 2020-05-13 14:20:31 +02:00
243 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
243.out
244 qemu-iotests: allow qcow2 external discarded clusters to contain stale data 2020-04-30 17:51:06 +02:00
244.out qemu-iotests: allow qcow2 external discarded clusters to contain stale data 2020-04-30 17:51:06 +02:00
245 iotests: use python logging for iotests.log() 2020-05-05 13:17:36 +02:00
245.out iotests: use python logging for iotests.log() 2020-05-05 13:17:36 +02:00
246 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
246.out
247 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
247.out
248 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
248.out
249 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
249.out iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
250 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
250.out
251 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
251.out
252 iotests: Use _rm_test_img for deleting test images 2020-01-06 13:43:07 +01:00
252.out
253
253.out block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
254 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
254.out iotests: test bitmap moving inside 254 2019-08-16 16:28:03 -04:00
255 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
255.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
256 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
256.out block/backup: improve sync=bitmap work estimates 2019-08-16 16:28:03 -04:00
257 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
257.out block/backup: use backup-top instead of write notifiers 2019-10-10 10:56:18 +02:00
258 iotest 258: use script_main 2020-05-05 13:17:36 +02:00
258.out iotests: Add test for concurrent stream/commit 2019-08-16 10:25:16 +02:00
259 iotests: Add test for image creation fallback 2020-02-20 16:43:42 +01:00
259.out iotests: Add test for image creation fallback 2020-02-20 16:43:42 +01:00
260 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
260.out iotests: add test 260 to check bitmap life after snapshot + commit 2019-10-17 17:02:32 -04:00
261 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
261.out iotests: Test qcow2's snapshot table handling 2019-10-28 11:54:49 +01:00
262 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
262.out iotests/262: Switch source/dest VM launch order 2019-10-08 14:28:25 +01:00
263 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
263.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
264 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
264.out iotests: test nbd reconnect 2019-10-22 20:51:31 -05:00
265 iotests: Replace IMGOPTS= by -o 2020-01-06 13:43:07 +01:00
265.out iotests: Test reverse sub-cluster qcow2 writes 2019-09-10 08:58:43 +02:00
266 tests/qemu-iotests: Explicit usage of Python3 (scripts without __main__) 2020-02-07 15:15:16 +01:00
266.out iotests: 266: Convert to VM.blockdev_create() 2019-12-19 14:32:43 +01:00
267 iotests: Check for the availability of the required devices in 267 and 127 2020-02-06 13:47:45 +01:00
267.out iotests/267: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
268 block: Reject misaligned write requests with BDRV_REQ_NO_FALLBACK 2019-10-14 17:12:48 +02:00
268.out block: Reject misaligned write requests with BDRV_REQ_NO_FALLBACK 2019-10-14 17:12:48 +02:00
270 iotests: Test large write request to qcow2 file 2019-10-14 17:12:48 +02:00
270.out iotests: Test large write request to qcow2 file 2019-10-14 17:12:48 +02:00
272 iotests: Add test for 4G+ compressed qcow2 write 2019-11-07 14:37:46 +01:00
272.out iotests: Add test for 4G+ compressed qcow2 write 2019-11-07 14:37:46 +01:00
273 iotests: Disable data_file where it cannot be used 2020-01-06 13:43:07 +01:00
273.out iotests/273: Filter format-specific information 2019-12-19 13:20:10 +01:00
274 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
274.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
277 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
277.out iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
279 iotests: Fix cleanup path in some tests 2020-03-24 11:57:38 +01:00
279.out qemu-img: fix info --backing-chain --image-opts 2019-12-18 11:20:57 +01:00
280 iotests: add script_initialize 2020-05-05 13:17:36 +02:00
280.out block/amend: refactor qcow2 amend options 2020-07-06 08:49:28 +02:00
281 tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__) 2020-02-07 15:12:48 +01:00
281.out iotests: Test handling of AioContexts with some blockdev actions 2020-01-27 17:19:53 +01:00
282 qemu-iotests: adding LUKS cleanup for non-UTF8 secret error 2020-03-11 15:54:38 +01:00
282.out qemu-iotests: adding LUKS cleanup for non-UTF8 secret error 2020-03-11 15:54:38 +01:00
283 iotests/283: Use consistent size for source and target 2020-05-08 13:26:35 +02:00
283.out iotests/283: Use consistent size for source and target 2020-05-08 13:26:35 +02:00
284 iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
284.out iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
286 iotests: Test snapshot -l field separation 2020-02-20 16:43:42 +01:00
286.out iotests: Test snapshot -l field separation 2020-02-20 16:43:42 +01:00
287 iotests: 287: add qcow2 compression type test 2020-05-13 14:20:31 +02:00
287.out iotests: 287: add qcow2 compression type test 2020-05-13 14:20:31 +02:00
288 iotests: add 288 luks qemu-img measure test 2020-03-11 12:42:29 +01:00
288.out iotests: add 288 luks qemu-img measure test 2020-03-11 12:42:29 +01:00
289 iotests/026: Move v3-exclusive test to new file 2020-03-24 12:05:31 +01:00
289.out iotests/026: Move v3-exclusive test to new file 2020-03-24 12:05:31 +01:00
290 qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
290.out qcow2: Forbid discard in qcow2 v2 images with backing files 2020-04-07 13:51:09 +02:00
291 iotests: don't test qcow2.py inside 291 2020-06-24 10:00:04 +02:00
291.out iotests: don't test qcow2.py inside 291 2020-06-24 10:00:04 +02:00
292 iotests/292: data_file is unsupported 2020-06-17 16:21:21 +02:00
292.out qcow2: Avoid integer wraparound in qcow2_co_truncate() 2020-05-08 13:26:35 +02:00
293 iotests: qemu-img tests for luks key management 2020-07-06 08:49:28 +02:00
293.out iotests: qemu-img tests for luks key management 2020-07-06 08:49:28 +02:00
294 iotests: qemu-img tests for luks key management 2020-07-06 08:49:28 +02:00
294.out iotests: qemu-img tests for luks key management 2020-07-06 08:49:28 +02:00
295 iotests: add tests for blockdev-amend 2020-07-06 08:49:28 +02:00
295.out iotests: add tests for blockdev-amend 2020-07-06 08:49:28 +02:00
296 iotests: add tests for blockdev-amend 2020-07-06 08:49:28 +02:00
296.out iotests: add tests for blockdev-amend 2020-07-06 08:49:28 +02:00
297 iotests: Run pylint and mypy in a testcase 2020-05-18 19:05:25 +02:00
297.out iotests: Run pylint and mypy in a testcase 2020-05-18 19:05:25 +02:00
check iotests: vmdk: Enable zeroed_grained=on by default 2020-05-08 13:26:35 +02:00
common.config
common.filter iotests: filter few more luks specific create options 2020-07-06 08:33:06 +02:00
common.nbd iotests: Let common.nbd create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
common.pattern iotests/common.pattern: Quote echos 2020-04-07 13:51:09 +02:00
common.qemu iotests: Include QMP input in .out files 2019-11-18 20:33:48 -06:00
common.rc iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
common.tls
group iotests: add tests for blockdev-amend 2020-07-06 08:49:28 +02:00
iotests.py iotests: Check whether luks works 2020-07-06 08:49:28 +02:00
Makefile
nbd-fault-injector.py python: remove more instances of sys.version_info 2020-05-31 18:25:07 +02:00
pylintrc iotests: limit line length to 79 chars 2020-05-05 13:17:36 +02:00
qcow2_format.py iotests: Add copyright line in qcow2.py 2020-06-17 16:21:21 +02:00
qcow2.py iotests: Add copyright line in qcow2.py 2020-06-17 16:21:21 +02:00
qed.py drop "from __future__ import print_function" 2020-02-07 15:15:16 +01:00
README
socket_scm_helper.c

=== 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.