2009-06-23 00:29:05 +08:00
|
|
|
#
|
|
|
|
# QA groups control file
|
|
|
|
# Defines test groups
|
|
|
|
# - do not start group names with a digit
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# test-group association ... one line per test
|
|
|
|
#
|
2014-06-28 04:47:48 +08:00
|
|
|
001 rw auto quick
|
2012-03-08 19:26:52 +08:00
|
|
|
002 rw auto quick
|
2009-06-23 00:29:05 +08:00
|
|
|
003 rw auto
|
2012-03-08 19:26:52 +08:00
|
|
|
004 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
005 img auto quick
|
2015-03-04 05:22:38 +08:00
|
|
|
# 006 was removed, do not reuse
|
2009-06-23 00:29:05 +08:00
|
|
|
007 snapshot auto
|
2014-06-28 04:47:48 +08:00
|
|
|
008 rw auto quick
|
|
|
|
009 rw auto quick
|
|
|
|
010 rw auto quick
|
2012-03-08 19:26:52 +08:00
|
|
|
011 rw auto quick
|
|
|
|
012 auto quick
|
2009-06-23 00:29:05 +08:00
|
|
|
013 rw auto
|
|
|
|
014 rw auto
|
2009-07-03 23:45:56 +08:00
|
|
|
015 rw snapshot auto
|
2015-02-06 02:58:21 +08:00
|
|
|
# 016 was removed, do not reuse
|
2012-03-08 19:26:52 +08:00
|
|
|
017 rw backing auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
018 rw backing auto quick
|
2012-03-08 19:26:52 +08:00
|
|
|
019 rw backing auto quick
|
|
|
|
020 rw backing auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
021 io auto quick
|
2009-07-20 20:36:47 +08:00
|
|
|
022 rw snapshot auto
|
2009-10-02 01:30:19 +08:00
|
|
|
023 rw auto
|
2012-03-08 19:26:52 +08:00
|
|
|
024 rw backing auto quick
|
|
|
|
025 rw auto quick
|
2010-06-14 17:17:54 +08:00
|
|
|
026 rw blkdbg auto
|
2012-03-08 19:26:52 +08:00
|
|
|
027 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
028 rw backing auto quick
|
2012-03-08 19:26:52 +08:00
|
|
|
029 rw auto quick
|
2012-09-28 23:22:52 +08:00
|
|
|
030 rw auto backing
|
2012-02-16 23:55:01 +08:00
|
|
|
031 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
032 rw auto quick
|
2013-11-22 20:39:58 +08:00
|
|
|
033 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
034 rw auto backing quick
|
2012-04-24 22:30:23 +08:00
|
|
|
035 rw auto quick
|
2012-06-14 20:58:18 +08:00
|
|
|
036 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
037 rw auto backing quick
|
|
|
|
038 rw auto backing quick
|
|
|
|
039 rw auto quick
|
2012-09-28 01:29:17 +08:00
|
|
|
040 rw auto
|
2012-10-23 22:39:22 +08:00
|
|
|
041 rw auto backing
|
2012-10-12 20:24:42 +08:00
|
|
|
042 rw auto quick
|
2012-10-17 20:02:32 +08:00
|
|
|
043 rw auto backing
|
2012-10-27 02:31:15 +08:00
|
|
|
044 rw auto
|
2014-06-28 04:47:47 +08:00
|
|
|
045 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
046 rw auto aio quick
|
|
|
|
047 rw auto quick
|
2013-02-13 16:09:42 +08:00
|
|
|
048 img auto quick
|
2013-01-29 17:46:52 +08:00
|
|
|
049 rw auto
|
2013-03-13 22:58:13 +08:00
|
|
|
050 rw auto backing quick
|
2013-08-28 15:50:40 +08:00
|
|
|
051 rw auto
|
2014-02-21 01:28:03 +08:00
|
|
|
052 rw auto backing quick
|
|
|
|
053 rw auto quick
|
|
|
|
054 rw auto quick
|
2013-06-24 23:13:20 +08:00
|
|
|
055 rw auto
|
2013-07-27 02:39:05 +08:00
|
|
|
056 rw auto backing
|
2013-09-11 14:04:39 +08:00
|
|
|
057 rw auto
|
2014-02-21 01:28:03 +08:00
|
|
|
058 rw auto quick
|
|
|
|
059 rw auto quick
|
|
|
|
060 rw auto quick
|
2014-10-27 18:12:56 +08:00
|
|
|
061 rw auto
|
2014-02-21 01:28:03 +08:00
|
|
|
062 rw auto quick
|
|
|
|
063 rw auto quick
|
|
|
|
064 rw auto quick
|
2014-06-28 04:47:47 +08:00
|
|
|
065 rw auto quick
|
2014-02-21 01:28:03 +08:00
|
|
|
066 rw auto quick
|
2014-06-28 04:47:47 +08:00
|
|
|
067 rw auto quick
|
|
|
|
068 rw auto quick
|
2014-02-21 01:28:03 +08:00
|
|
|
069 rw auto quick
|
|
|
|
070 rw auto quick
|
2014-06-28 04:47:47 +08:00
|
|
|
071 rw auto quick
|
2014-02-21 01:28:03 +08:00
|
|
|
072 rw auto quick
|
|
|
|
073 rw auto quick
|
|
|
|
074 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
075 rw auto quick
|
2014-03-26 20:06:08 +08:00
|
|
|
076 auto
|
2014-02-21 01:28:03 +08:00
|
|
|
077 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
078 rw auto quick
|
2014-01-26 11:12:40 +08:00
|
|
|
079 rw auto
|
2014-03-26 20:05:41 +08:00
|
|
|
080 rw auto
|
2014-06-28 04:47:47 +08:00
|
|
|
081 rw auto quick
|
2014-02-21 23:24:08 +08:00
|
|
|
082 rw auto quick
|
2014-02-26 22:30:20 +08:00
|
|
|
083 rw auto
|
2014-06-28 04:47:48 +08:00
|
|
|
084 img auto quick
|
2014-03-13 17:28:01 +08:00
|
|
|
085 rw auto
|
2014-03-03 21:53:04 +08:00
|
|
|
086 rw auto quick
|
2014-06-28 04:47:47 +08:00
|
|
|
087 rw auto quick
|
2014-06-28 04:47:48 +08:00
|
|
|
088 rw auto quick
|
2014-05-09 02:12:42 +08:00
|
|
|
089 rw auto quick
|
2014-04-29 22:12:31 +08:00
|
|
|
090 rw auto quick
|
2018-05-23 17:54:41 +08:00
|
|
|
091 rw auto migration
|
2014-05-07 23:30:30 +08:00
|
|
|
092 rw auto quick
|
2015-01-30 10:49:46 +08:00
|
|
|
093 auto
|
2015-02-07 05:06:18 +08:00
|
|
|
094 rw auto quick
|
2014-06-28 04:47:47 +08:00
|
|
|
095 rw auto quick
|
2015-09-17 22:33:06 +08:00
|
|
|
096 rw auto quick
|
2014-10-24 21:57:42 +08:00
|
|
|
097 rw auto backing
|
2014-10-24 21:57:43 +08:00
|
|
|
098 rw auto backing quick
|
2014-07-19 02:25:01 +08:00
|
|
|
099 rw auto quick
|
2016-02-26 20:50:43 +08:00
|
|
|
# 100 was removed, do not reuse
|
2014-08-21 20:44:08 +08:00
|
|
|
101 rw auto quick
|
2014-10-22 23:00:17 +08:00
|
|
|
102 rw auto quick
|
2014-08-19 04:07:34 +08:00
|
|
|
103 rw auto quick
|
2014-09-10 17:05:45 +08:00
|
|
|
104 rw auto
|
2014-09-23 09:56:21 +08:00
|
|
|
105 rw auto quick
|
2017-06-14 04:21:06 +08:00
|
|
|
106 rw auto quick
|
2014-10-16 21:25:57 +08:00
|
|
|
107 rw auto quick
|
2014-10-22 20:09:43 +08:00
|
|
|
108 rw auto quick
|
2014-11-20 23:27:14 +08:00
|
|
|
109 rw auto
|
2014-11-27 00:20:29 +08:00
|
|
|
110 rw auto backing quick
|
2014-10-27 20:30:09 +08:00
|
|
|
111 rw auto quick
|
2015-02-19 06:40:50 +08:00
|
|
|
112 rw auto
|
2014-12-03 01:32:49 +08:00
|
|
|
113 rw auto quick
|
2014-11-26 01:12:42 +08:00
|
|
|
114 rw auto quick
|
2014-12-06 00:53:32 +08:00
|
|
|
115 rw auto
|
2015-01-12 20:31:33 +08:00
|
|
|
116 rw auto quick
|
2016-01-29 23:36:15 +08:00
|
|
|
117 rw auto
|
2015-10-27 04:39:19 +08:00
|
|
|
118 rw auto
|
2015-03-20 02:53:17 +08:00
|
|
|
119 rw auto quick
|
|
|
|
120 rw auto quick
|
2015-02-11 04:02:32 +08:00
|
|
|
121 rw auto
|
2015-03-19 20:33:33 +08:00
|
|
|
122 rw auto
|
2015-02-11 22:58:47 +08:00
|
|
|
123 rw auto quick
|
2015-04-18 07:50:05 +08:00
|
|
|
124 rw auto backing
|
2017-06-14 04:21:07 +08:00
|
|
|
125 rw auto
|
2017-07-02 23:05:10 +08:00
|
|
|
126 rw auto backing
|
2017-09-30 01:08:43 +08:00
|
|
|
127 rw auto backing quick
|
2015-03-06 05:38:18 +08:00
|
|
|
128 rw auto quick
|
2015-04-03 22:05:20 +08:00
|
|
|
129 rw auto quick
|
2015-04-07 21:03:16 +08:00
|
|
|
130 rw auto quick
|
2015-04-28 15:46:45 +08:00
|
|
|
131 rw auto quick
|
2015-06-08 13:56:13 +08:00
|
|
|
132 rw auto quick
|
2015-05-09 00:11:08 +08:00
|
|
|
133 auto quick
|
2015-05-13 00:09:22 +08:00
|
|
|
134 rw auto quick
|
2015-07-24 22:26:52 +08:00
|
|
|
135 rw auto
|
2015-10-28 23:33:10 +08:00
|
|
|
136 rw auto
|
2015-09-05 01:13:14 +08:00
|
|
|
137 rw auto
|
2015-09-10 00:09:47 +08:00
|
|
|
138 rw auto quick
|
2015-11-02 22:51:56 +08:00
|
|
|
139 rw auto quick
|
2016-01-29 23:36:02 +08:00
|
|
|
140 rw auto quick
|
2016-01-29 23:36:16 +08:00
|
|
|
141 rw auto quick
|
2015-05-09 00:06:47 +08:00
|
|
|
142 auto
|
2016-01-26 02:41:15 +08:00
|
|
|
143 auto quick
|
2016-02-02 09:33:11 +08:00
|
|
|
144 rw auto quick
|
2016-02-19 23:48:10 +08:00
|
|
|
145 auto quick
|
2016-02-26 01:27:28 +08:00
|
|
|
146 auto quick
|
2016-10-25 21:11:41 +08:00
|
|
|
147 auto
|
2016-03-10 19:55:27 +08:00
|
|
|
148 rw auto quick
|
2016-03-21 22:11:52 +08:00
|
|
|
149 rw auto sudo
|
2016-03-25 06:34:00 +08:00
|
|
|
150 rw auto quick
|
2018-06-14 02:18:23 +08:00
|
|
|
151 rw auto
|
2016-04-20 10:48:36 +08:00
|
|
|
152 rw auto quick
|
2017-05-03 00:35:57 +08:00
|
|
|
153 rw auto quick
|
2016-05-18 00:37:39 +08:00
|
|
|
154 rw auto backing quick
|
2016-06-11 02:57:49 +08:00
|
|
|
155 rw auto
|
2016-06-11 02:57:50 +08:00
|
|
|
156 rw auto quick
|
2016-06-30 21:29:35 +08:00
|
|
|
157 auto
|
2016-09-06 22:26:37 +08:00
|
|
|
158 rw auto quick
|
2016-08-10 10:43:12 +08:00
|
|
|
159 rw auto quick
|
2016-08-10 22:16:09 +08:00
|
|
|
160 rw auto quick
|
block: Update BlockDriverState.inherits_from on bdrv_set_backing_hd()
When a BlockDriverState's child is opened (be it a backing file, the
protocol layer, or any other) inherits_from is set to point to the
parent node. Children opened separately and then attached to a parent
don't have this pointer set.
bdrv_reopen_queue_child() uses this to determine whether a node's
children must also be reopened inheriting the options from the parent
or not. If inherits_from points to the parent then the child is
reopened and its options can be changed, like in this example:
$ qemu-img create -f qcow2 hd0.qcow2 1M
$ qemu-img create -f qcow2 hd1.qcow2 1M
$ $QEMU -drive if=none,node-name=hd0,file=hd0.qcow2,\
backing.driver=qcow2,backing.file.filename=hd1.qcow2
(qemu) qemu-io hd0 "reopen -o backing.l2-cache-size=2M"
If the child does not inherit from the parent then it does not get
reopened and its options cannot be changed:
$ $QEMU -drive if=none,node-name=hd1,file=hd1.qcow2
-drive if=none,node-name=hd0,file=hd0.qcow2,backing=hd1
(qemu) qemu-io hd0 "reopen -o backing.l2-cache-size=2M"
Cannot change the option 'backing.l2-cache-size'
If a disk image has a chain of backing files then all of them are also
connected through their inherits_from pointers (i.e. it's possible to
walk the chain in reverse order from base to top).
However this is broken if the intermediate nodes are removed using
e.g. block-stream because the inherits_from pointer from the base node
becomes NULL:
$ qemu-img create -f qcow2 hd0.qcow2 1M
$ qemu-img create -f qcow2 -b hd0.qcow2 hd1.qcow2
$ qemu-img create -f qcow2 -b hd1.qcow2 hd2.qcow2
$ $QEMU -drive if=none,file=hd2.qcow2
(qemu) qemu-io none0 "reopen -o backing.l2-cache-size=2M"
(qemu) block_stream none0 0 hd0.qcow2
(qemu) qemu-io none0 "reopen -o backing.l2-cache-size=2M"
Cannot change the option 'backing.l2-cache-size'
This patch updates the inherits_from pointer if the intermediate nodes
of a backing chain are removed using bdrv_set_backing_hd(), and adds a
test case for this scenario.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-11-01 00:16:37 +08:00
|
|
|
161 rw auto quick
|
2016-08-15 21:29:27 +08:00
|
|
|
162 auto quick
|
2018-03-11 05:45:54 +08:00
|
|
|
163 rw auto
|
2017-06-28 20:05:26 +08:00
|
|
|
165 rw auto quick
|
2018-05-23 17:54:41 +08:00
|
|
|
169 rw auto quick migration
|
2016-08-10 10:43:12 +08:00
|
|
|
170 rw auto quick
|
2016-10-31 18:27:41 +08:00
|
|
|
171 rw auto quick
|
2016-10-28 04:29:14 +08:00
|
|
|
172 auto
|
2017-01-26 09:08:22 +08:00
|
|
|
173 rw auto
|
2017-02-01 08:31:20 +08:00
|
|
|
174 auto
|
2017-02-17 08:51:25 +08:00
|
|
|
175 auto quick
|
2017-04-01 02:53:54 +08:00
|
|
|
176 rw auto backing
|
tests: Add coverage for recent block geometry fixes
Use blkdebug's new geometry constraints to emulate setups that
have needed past regression fixes: write zeroes asserting
when running through a loopback block device with max-transfer
smaller than cluster size, and discard rounding away portions
of requests not aligned to preferred boundaries. Also, add
coverage that the block layer is honoring max transfer limits.
For now, a single iotest performs all actions, with the idea
that we can add future blkdebug constraint test cases in the
same file; but it can be split into multiple iotests if we find
reason to run one portion of the test in more setups than what
are possible in the other.
For reference, the final portion of the test (checking whether
discard passes as much as possible to the lowest layers of the
stack) works as follows:
qemu-io: discard 30M at 80000001, passed to blkdebug
blkdebug: discard 511 bytes at 80000001, -ENOTSUP (smaller than
blkdebug's 512 align)
blkdebug: discard 14371328 bytes at 80000512, passed to qcow2
qcow2: discard 739840 bytes at 80000512, -ENOTSUP (smaller than
qcow2's 1M align)
qcow2: discard 13M bytes at 77M, succeeds
blkdebug: discard 15M bytes at 90M, passed to qcow2
qcow2: discard 15M bytes at 90M, succeeds
blkdebug: discard 1356800 bytes at 105M, passed to qcow2
qcow2: discard 1M at 105M, succeeds
qcow2: discard 308224 bytes at 106M, -ENOTSUP (smaller than qcow2's
1M align)
blkdebug: discard 1 byte at 111457280, -ENOTSUP (smaller than
blkdebug's 512 align)
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170429191419.30051-10-eblake@redhat.com
[mreitz: For cooperation with image locking, add -r to the qemu-io
invocation which verifies the image content]
Signed-off-by: Max Reitz <mreitz@redhat.com>
2017-04-30 03:14:19 +08:00
|
|
|
177 rw auto quick
|
2017-07-17 22:26:20 +08:00
|
|
|
178 auto
|
2017-05-07 08:05:49 +08:00
|
|
|
179 rw auto quick
|
2017-04-14 00:41:46 +08:00
|
|
|
181 rw auto migration
|
2017-05-03 00:35:58 +08:00
|
|
|
182 rw auto quick
|
2017-05-23 20:53:10 +08:00
|
|
|
183 rw auto migration
|
2017-08-25 21:20:28 +08:00
|
|
|
184 rw auto quick
|
2017-06-09 19:37:01 +08:00
|
|
|
185 rw auto
|
2017-07-12 19:36:06 +08:00
|
|
|
186 rw auto
|
2017-08-03 23:03:01 +08:00
|
|
|
187 rw auto
|
2017-06-24 00:24:13 +08:00
|
|
|
188 rw auto quick
|
2017-07-17 22:26:20 +08:00
|
|
|
189 rw auto
|
2017-07-24 23:39:52 +08:00
|
|
|
190 rw auto quick
|
2017-06-30 01:56:48 +08:00
|
|
|
191 rw auto
|
2017-08-15 21:07:40 +08:00
|
|
|
192 rw auto quick
|
2017-08-23 22:05:06 +08:00
|
|
|
194 rw auto migration quick
|
2017-09-16 00:56:41 +08:00
|
|
|
195 rw auto quick
|
2018-05-23 17:54:41 +08:00
|
|
|
196 rw auto quick migration
|
iotests: Add test 197 for covering copy-on-read
Add a test for qcow2 copy-on-read behavior, including exposure
for the just-fixed bugs.
The copy-on-read behavior is always to a qcow2 image, but the
test is careful to allow running with most image protocol/format
combos as the backing file being copied from (luks being the
exception, as it is harder to pass the right secret to all the
right places). In fact, for './check nbd', this appears to be
the first time we've had a qcow2 image wrapping NBD, requiring
an additional line in _filter_img_create to match the similar
line in _filter_img_info.
Invoking blkdebug to prove we don't write too much took some
effort to get working; and it requires that $TEST_WRAP (based
on $TEST_DIR) not be subject to word splitting. We may decide
later to have the entire iotests suite use relative rather than
absolute names, to avoid problems inherited by the absolute
name of $PWD or $TEST_DIR, at which point the sanity check in
this commit could be simplified.
This test requires at least 2G of consecutive memory to succeed;
as such, it is prone to spurious failures, particularly on
32-bit machines under load. This situation is detected and
triggers an early exit to skip the test, rather than a failure.
To manually provoke this setup on a beefier machine, I used:
$ (ulimit -S -v 1000000; ./check -qcow2 197)
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2017-10-06 03:02:48 +08:00
|
|
|
197 rw auto quick
|
2017-11-17 19:29:13 +08:00
|
|
|
198 rw auto
|
2018-05-23 17:54:41 +08:00
|
|
|
199 rw auto migration
|
2017-11-18 15:00:18 +08:00
|
|
|
200 rw auto
|
2017-12-05 21:35:08 +08:00
|
|
|
201 rw auto migration
|
2017-12-06 22:45:50 +08:00
|
|
|
202 rw auto quick
|
2018-05-23 17:54:41 +08:00
|
|
|
203 rw auto migration
|
2018-01-18 00:54:19 +08:00
|
|
|
204 rw auto quick
|
2018-01-19 21:57:19 +08:00
|
|
|
205 rw auto quick
|
2018-02-07 23:42:44 +08:00
|
|
|
206 rw auto
|
2018-02-09 03:06:41 +08:00
|
|
|
207 rw auto
|
2018-03-13 05:04:39 +08:00
|
|
|
208 rw auto quick
|
2018-03-12 23:21:26 +08:00
|
|
|
209 rw auto quick
|
2018-03-03 01:38:14 +08:00
|
|
|
210 rw auto
|
2018-03-20 20:33:52 +08:00
|
|
|
211 rw auto quick
|
2018-03-20 20:33:52 +08:00
|
|
|
212 rw auto quick
|
2018-03-20 20:33:52 +08:00
|
|
|
213 rw auto quick
|
2018-04-07 00:41:08 +08:00
|
|
|
214 rw auto
|
2018-04-21 21:29:28 +08:00
|
|
|
215 rw auto quick
|
2018-04-21 21:29:29 +08:00
|
|
|
216 rw auto quick
|
2018-05-10 04:00:59 +08:00
|
|
|
217 rw auto quick
|
2018-05-02 06:05:09 +08:00
|
|
|
218 rw auto quick
|
2018-05-08 20:04:58 +08:00
|
|
|
219 rw auto
|
2018-11-14 07:03:19 +08:00
|
|
|
220 rw auto
|
2018-06-12 05:39:27 +08:00
|
|
|
221 rw auto quick
|
2018-07-03 03:46:30 +08:00
|
|
|
222 rw auto quick
|
2018-07-03 03:14:58 +08:00
|
|
|
223 rw auto quick
|
2018-07-03 05:07:21 +08:00
|
|
|
225 rw auto quick
|
2018-07-11 01:00:41 +08:00
|
|
|
226 auto quick
|
2018-07-27 22:11:57 +08:00
|
|
|
227 auto quick
|
2018-08-22 00:26:20 +08:00
|
|
|
229 auto quick
|
2018-09-12 06:32:32 +08:00
|
|
|
231 auto quick
|
2018-10-20 00:26:06 +08:00
|
|
|
232 auto quick
|
2018-11-16 23:53:25 +08:00
|
|
|
233 auto quick
|
2018-11-26 19:21:07 +08:00
|
|
|
234 auto quick migration
|
2018-12-03 23:12:09 +08:00
|
|
|
235 auto quick
|