qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 1/6] block-commit: Expose granularity


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 1/6] block-commit: Expose granularity
Date: Tue, 08 Apr 2014 10:20:59 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 04/08/2014 06:50 AM, Max Reitz wrote:
> Allow QMP users to manipulate the granularity used in the block-commit
> command.
> 
> Signed-off-by: Max Reitz <address@hidden>
> ---


> +++ b/include/block/block_int.h
> @@ -426,6 +426,7 @@ void stream_start(BlockDriverState *bs, BlockDriverState 
> *base,
>   * @top: Top block device to be committed.
>   * @base: Block device that will be written into, and become the new top.
>   * @speed: The maximum speed, in bytes per second, or 0 for unlimited.
> + * @granularity: The granularity, in bytes, or 0 for a default value.
>   * @on_error: The action to take upon error.
>   * @cb: Completion function for the job.
>   * @opaque: Opaque pointer value passed to @cb.
> @@ -433,7 +434,7 @@ void stream_start(BlockDriverState *bs, BlockDriverState 
> *base,
>   *
>   */
>  void commit_start(BlockDriverState *bs, BlockDriverState *base,
> -                 BlockDriverState *top, int64_t speed,
> +                 BlockDriverState *top, int64_t speed, int64_t granularity,
>                   BlockdevOnError on_error, BlockDriverCompletionFunc *cb,
>                   void *opaque, Error **errp);

Worth fixing the indentation while you are touching this?

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]