bdrv_inherited_fmt_options() is used only by (pseudo-)filter drivers, namely quorum and blkverify. Both should pass on BDRV_O_NO_IO to their children. There is no reason to clear it in bdrv_inherited_fmt_options().
Signed-off-by: Max Reitz <mre...@redhat.com> --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 6c50ad661e..58252007af 100644 --- a/block.c +++ b/block.c @@ -1034,7 +1034,7 @@ static void bdrv_inherited_fmt_options(int *child_flags, QDict *child_options, child_file.inherit_options(child_flags, child_options, parent_flags, parent_options); - *child_flags &= ~(BDRV_O_PROTOCOL | BDRV_O_NO_IO); + *child_flags &= ~BDRV_O_PROTOCOL; } const BdrvChildClass child_format = { -- 2.23.0