[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 2/3] tests/test-blockjob: Use zeroes-co instead of null-co, r
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 2/3] tests/test-blockjob: Use zeroes-co instead of null-co, read-zeroes=on |
Date: |
Wed, 10 Mar 2021 12:43:13 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
RFC because I won't convert the rest of the tests until the
previous patch is reviewed.
---
tests/test-blockjob.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c
index 75198479120..ae2ea7028ee 100644
--- a/tests/test-blockjob.c
+++ b/tests/test-blockjob.c
@@ -70,9 +70,7 @@ static BlockBackend *create_blk(const char *name)
BlockBackend *blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL);
BlockDriverState *bs;
- QDict *opt = qdict_new();
- qdict_put_str(opt, "file.read-zeroes", "on");
- bs = bdrv_open("null-co://", NULL, opt, 0, &error_abort);
+ bs = bdrv_open("zeroes-co://", NULL, NULL, 0, &error_abort);
g_assert_nonnull(bs);
blk_insert_bs(blk, bs, &error_abort);
--
2.26.2
- [PATCH 0/3] block: Introduce the 'zeroes-co' driver to help security reports, Philippe Mathieu-Daudé, 2021/03/10
- [PATCH 1/3] block: Introduce the 'zeroes-co' driver, Philippe Mathieu-Daudé, 2021/03/10
- [RFC PATCH 2/3] tests/test-blockjob: Use zeroes-co instead of null-co, read-zeroes=on,
Philippe Mathieu-Daudé <=
- [PATCH 3/3] docs/secure-coding-practices: Describe null-co/zeroes-co block drivers, Philippe Mathieu-Daudé, 2021/03/10
- Re: [PATCH 0/3] block: Introduce the 'zeroes-co' driver to help security reports, Daniel P . Berrangé, 2021/03/10
- Re: [PATCH 0/3] block: Introduce the 'zeroes-co' driver to help security reports, Fam Zheng, 2021/03/10