[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 10/10] block: add QAPI command to allow live
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v4 10/10] block: add QAPI command to allow live backing file change |
Date: |
Wed, 04 Jun 2014 20:38:39 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/04/2014 07:51 AM, Jeff Cody wrote:
> This allows a user to make a live change to the backing file recorded in
> an open image.
>
> The image file to modify can be specified 2 ways:
>
> 1) image filename
> 2) image node-name
>
> Note: this does not cause the backing file itself to be reopened; it
> merely changes the backing filename in the image file structure, and
> in internal BDS structures.
>
> It is the responsibility of the user to pass a filename string that
> can be resolved when the image chain is reopened, and the filename
> string is not validated.
>
> A good analogy for this command is that it is a live version of
> 'qemu-img rebase -u', with respect to changing the backing file string.
>
> Signed-off-by: Jeff Cody <address@hidden>
> ---
> blockdev.c | 102
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> qapi-schema.json | 60 ++++++++++++++++++++++++++++++++
> qmp-commands.hx | 74 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 236 insertions(+)
>
> +#
> +# Method 2 interface
> +#---------------------
> +# @image-node-name #optional The name of the block driver state node of the
> +# image to modify. The @device argumen is used to
s/argumen/argument/
Unless there is any other reason for a respin, I'm hoping the committer
can fix the typo, and add:
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v4 03/10] block: simplify bdrv_find_base() and bdrv_find_overlay(), (continued)
- [Qemu-devel] [PATCH v4 05/10] block: Accept node-name arguments for block-commit, Jeff Cody, 2014/06/04
- [Qemu-devel] [PATCH v4 06/10] block: extend block-commit to accept a string for the backing file, Jeff Cody, 2014/06/04
- [Qemu-devel] [PATCH v4 08/10] block: add backing-file option to block-stream, Jeff Cody, 2014/06/04
- [Qemu-devel] [PATCH v4 07/10] block: add ability for block-stream to use node-name, Jeff Cody, 2014/06/04
- [Qemu-devel] [PATCH v4 09/10] block: Add QMP documentation for block-stream, Jeff Cody, 2014/06/04
- [Qemu-devel] [PATCH v4 10/10] block: add QAPI command to allow live backing file change, Jeff Cody, 2014/06/04