[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 14/15] iotests: prepare 245 for using filter in block-stream
From: |
Andrey Shinkevich |
Subject: |
[PATCH v3 14/15] iotests: prepare 245 for using filter in block-stream |
Date: |
Tue, 12 May 2020 17:53:15 +0300 |
The preliminary patch modifies the test 245 to prepare the block-stream
job for using COR-filter. The filter breaks the backing chain being
connected to the underlying node by file child link.
Signed-off-by: Andrey Shinkevich <address@hidden>
---
tests/qemu-iotests/245 | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/qemu-iotests/245 b/tests/qemu-iotests/245
index 4f5f0bb..5bcddc4 100755
--- a/tests/qemu-iotests/245
+++ b/tests/qemu-iotests/245
@@ -896,15 +896,19 @@ class TestBlockdevReopen(iotests.QMPTestCase):
# make hd1 read-only and block-stream requires it to be read-write
# (Which error message appears depends on whether the stream job is
# already done with copying at this point.)
- self.reopen(opts, {},
+ opts = hd_opts(1)
+ opts['backing'] = hd_opts(2)
+ opts['backing']['backing'] = None
+ self.reopen(opts, {'read-only': True},
["Can't set node 'hd1' to r/o with copy-on-read enabled",
"Cannot make block node read-only, there is a writer on it"])
# We can't remove hd2 while the stream job is ongoing
- opts['backing']['backing'] = None
- self.reopen(opts, {'backing.read-only': False}, "Cannot change
'backing' link from 'hd1' to 'hd2'")
+ opts['backing'] = None
+ self.reopen(opts, {'read-only': False}, "Cannot change 'backing' link
from 'hd1' to 'hd2'")
# We can detach hd1 from hd0 because it doesn't affect the stream job
+ opts = hd_opts(0)
opts['backing'] = None
self.reopen(opts)
--
1.8.3.1
- [PATCH v3 08/15] block: Use CAFs when working with backing chains, (continued)
- [PATCH v3 08/15] block: Use CAFs when working with backing chains, Andrey Shinkevich, 2020/05/12
- [PATCH v3 02/15] copy-on-read: Support compressed writes, Andrey Shinkevich, 2020/05/12
- [PATCH v3 07/15] commit: Deal with filters when blocking intermediate nodes, Andrey Shinkevich, 2020/05/12
- [PATCH v3 12/15] copy-on-read: add filter append/drop functions, Andrey Shinkevich, 2020/05/12
- [PATCH v3 01/15] block: Mark commit and mirror as filter drivers, Andrey Shinkevich, 2020/05/12
- [PATCH v3 13/15] qapi: add filter-node-name to block-stream, Andrey Shinkevich, 2020/05/12
- [PATCH v3 06/15] block: Use CAFs in block status functions, Andrey Shinkevich, 2020/05/12
- [PATCH v3 15/15] block: apply COR-filter to block-stream jobs, Andrey Shinkevich, 2020/05/12
- [PATCH v3 05/15] block: Include filters when freezing backing chain, Andrey Shinkevich, 2020/05/12
- [PATCH v3 10/15] copy-on-read: Support change filename functions, Andrey Shinkevich, 2020/05/12
- [PATCH v3 14/15] iotests: prepare 245 for using filter in block-stream,
Andrey Shinkevich <=
- [PATCH v3 03/15] block: Add child access functions, Andrey Shinkevich, 2020/05/12
- Re: [PATCH v3 00/15] Apply COR-filter to the block-stream permanently, no-reply, 2020/05/12
- Re: [PATCH v3 00/15] Apply COR-filter to the block-stream permanently, no-reply, 2020/05/12
- Re: [PATCH v3 00/15] Apply COR-filter to the block-stream permanently, no-reply, 2020/05/12