Searched hist:"751 cec7a261adaf1145dc7adf6de7c9c084e5a0b" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/block/ |
H A D | copy-before-write.c | diff 751cec7a261adaf1145dc7adf6de7c9c084e5a0b Tue Aug 24 03:38:43 CDT 2021 Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> block/copy-before-write: make public block driver
Finally, copy-before-write gets own .bdrv_open and .bdrv_close handlers, block_init() call and becomes available through bdrv_open().
To achieve this:
- cbw_init gets unused flags argument and becomes cbw_open - block_copy_state_free() call moved to new cbw_close() - in bdrv_cbw_append: - options are completed with driver and node-name, and we can simply use bdrv_insert_node() to do both open and drained replacing - in bdrv_cbw_drop: - cbw_close() is now responsible for freeing s->bcs, so don't do it here
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210824083856.17408-22-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
|
/openbmc/qemu/ |
H A D | block.c | diff b11c8739ae38166acac0669cee94b7e236ccb639 Mon Sep 20 06:55:37 CDT 2021 Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> 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 <vsementsov@virtuozzo.com> Message-Id: <20210920115538.264372-5-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|