Re: [Qemu-devel] [PATCH v4 3/3] qemu-img: rebase: Reuse in-chain BlockDriverState

2019-05-23 Thread Max Reitz
On 23.05.19 17:44, Sam Eiderman wrote: > If a chain was detected, don't open a new BlockBackend from the target > backing file which will create a new BlockDriverState. Instead, create > an empty BlockBackend and attach the already open BlockDriverState. > > Permissions for blk_new() were copied f

[Qemu-devel] [PATCH v4 3/3] qemu-img: rebase: Reuse in-chain BlockDriverState

2019-05-23 Thread Sam Eiderman
If a chain was detected, don't open a new BlockBackend from the target backing file which will create a new BlockDriverState. Instead, create an empty BlockBackend and attach the already open BlockDriverState. Permissions for blk_new() were copied from blk_new_open() when flags = 0. Reviewed-by: