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:
On Thu, 10 Dec 2009, Kevin Wolf wrote:
> This adds a rebase subcommand to qemu-img which allows to change the backing
> file of an image.
[..snip..]
> +if ((optind >= argc) || !out_baseimg)
> +help();
Coding style..
[..snip..]
--
mailto:av1...@comtv.ru
This adds a rebase subcommand to qemu-img which allows to change the backing
file of an image.
In default mode, both the current and the new backing file need to exist, and
after the rebase, the COW image is guaranteed to have the same guest visible
content as before. To achieve this, old and new