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

2019-05-02 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:

Re: [Qemu-devel] [PATCH 3/3] qemu-img rebase

2009-12-10 Thread malc
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

[Qemu-devel] [PATCH 3/3] qemu-img rebase

2009-12-10 Thread Kevin Wolf
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