qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 08/14] qemu-img: Empty image after commit


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v6 08/14] qemu-img: Empty image after commit
Date: Tue, 29 Apr 2014 09:41:32 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 04/29/2014 09:07 AM, Max Reitz wrote:
> After the top image has been committed, it should be emptied unless
> specified otherwise.
> 
> Signed-off-by: Max Reitz <address@hidden>
> ---
>  qemu-img-cmds.hx |  4 ++--
>  qemu-img.c       | 34 +++++++++++++++++++++++++++++++---
>  qemu-img.texi    |  6 +++++-
>  3 files changed, 38 insertions(+), 6 deletions(-)
> 

>  
> +    /* The block job will swap base_bs and bs (which is not what we really 
> want
> +     * here, but okay) and unref bs (and subsequently all intermediate block
> +     * devices). In order to be able to empty these images afterwards, 
> increment
> +     * the reference counter here preemptively. */

Comment is stale, since we aren't going to "empty these images", only
the top image.

>  
> +The image @var{filename} is emptied after the operation has been successful. 
> If

s/has been successful/has succeeded/

> +you do not need @var{filename} afterwards anymore and intend to drop it, you 
> may

s/ anymore//

> +skip this operation by specifying the @code{-d} flag.

s/this operation/emptying @var{filename}/

The code looks okay, but as my tweaks include user-visible
documentation, you may want to post another revision just to make sure
it reads well.  But we're close enough that if you only need to make the
changes I suggested, I'm fine with:

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]