[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v15 11/13] iotests: 30: prepare to COR filter insertion by stream
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v15 11/13] iotests: 30: prepare to COR filter insertion by stream job |
Date: |
Wed, 16 Dec 2020 09:17:01 +0300 |
test_stream_parallel run parallel stream jobs, intersecting so that top
of one is base of another. It's OK now, but it would be a problem if
insert the filter, as one job will want to use another job's filter as
above_base node.
Correct thing to do is move to new interface: "bottom" argument instead
of base. This guarantees that jobs don't intersect by their actions.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/030 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
index dcb4b5d6a6..bd8cf9cff7 100755
--- a/tests/qemu-iotests/030
+++ b/tests/qemu-iotests/030
@@ -245,7 +245,9 @@ class TestParallelOps(iotests.QMPTestCase):
node_name = 'node%d' % i
job_id = 'stream-%s' % node_name
pending_jobs.append(job_id)
- result = self.vm.qmp('block-stream', device=node_name,
job_id=job_id, base=self.imgs[i-2], speed=1024)
+ result = self.vm.qmp('block-stream', device=node_name,
+ job_id=job_id, bottom=f'node{i-1}',
+ speed=1024)
self.assert_qmp(result, 'return', {})
for job in pending_jobs:
--
2.25.4
- [PATCH v15 03/13] copy-on-read: add filter drop function, (continued)
- [PATCH v15 03/13] copy-on-read: add filter drop function, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 06/13] iotests: add #310 to test bottom node in COR driver, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 08/13] copy-on-read: skip non-guest reads if no copy needed, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 09/13] stream: rework backing-file changing, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 10/13] qapi: block-stream: add "bottom" argument, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 11/13] iotests: 30: prepare to COR filter insertion by stream job,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v15 07/13] block: include supported_read_flags into BDS structure, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 12/13] block/stream: add s->target_bs, Vladimir Sementsov-Ogievskiy, 2020/12/16
- [PATCH v15 13/13] block: apply COR-filter to block-stream jobs, Vladimir Sementsov-Ogievskiy, 2020/12/16