]> Git Repo - qemu.git/commit
block: bdrv_insert_node(): don't use bdrv_open()
authorVladimir Sementsov-Ogievskiy <[email protected]>
Mon, 20 Sep 2021 11:55:37 +0000 (14:55 +0300)
committerKevin Wolf <[email protected]>
Wed, 6 Oct 2021 08:25:55 +0000 (10:25 +0200)
commitb11c8739ae38166acac0669cee94b7e236ccb639
tree4a756653ae3ba45ea3221640ed5dc1e72a230d31
parent96796fae6f22931d91223d086e9fa56d0f3e6720
block: bdrv_insert_node(): don't use bdrv_open()

Use bdrv_new_open_driver_opts() instead of complicated bdrv_open().

Among other extra things bdrv_open() also check for white-listed
formats, which we don't want for internal node creation: currently
backup doesn't work when copy-before-write filter is not white-listed.
As well block-stream doesn't work when copy-on-read is not
white-listed.

Fixes: 751cec7a261adaf1145dc7adf6de7c9c084e5a0b
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2004812
Reported-by: Yanan Fu
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20210920115538[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
This page took 0.026391 seconds and 4 git commands to generate.