qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Daniel Kučera" <daniel.kucera@gmail.com>,
	qemu-block@nongnu.org,
	"Qemu-devel@nongnu.org" <Qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Qemu-block] migration: add incremental drive-mirror and blockdev-mirror with dirtymap
Date: Tue, 2 May 2017 10:52:00 -0500	[thread overview]
Message-ID: <c9325e46-a7be-9213-76d0-c1c0a7519722@redhat.com> (raw)
In-Reply-To: <CAKVPjOY+sK5gnMGVX18VWk5sifnasPGeO61J_7zV12GZ_3nHrw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3142 bytes --]

[qemu-devel added in cc]

On 05/02/2017 09:26 AM, Daniel Kučera wrote:
> added parameter bitmap which will be used instead of newly created dirtymap
> in mirror_start_job
> 
> diff --git i/block/mirror.c w/block/mirror.c

All patches MUST be sent to qemu-devel@nongnu.org, in addition to
whatever other lists (including qemu-block, which you chose) are
specified by scripts/get_maintainer.pl.

Furthermore, ALL patches must have Signed-off-by: attribution that you
are legally able to submit the patch and agree to its proper licensing.
Without that, we can't take it.

Your patch is also missing diffstat information, which 'git
format-patch' includes by default, and which can quickly let readers
gauge the scope of your patch by the size of the changes to the files it
touches.

For more patch submission hints, see:
http://wiki.qemu.org/Contribute/SubmitAPatch


> +++ w/qapi/block-core.json
> @@ -1502,6 +1502,10 @@
>  #
>  # @speed:  the maximum speed, in bytes per second
>  #
> +# @bitmap: the name of dirty bitmap if sync is "incremental".
> +#          Must be present if sync is "incremental", must NOT be present
> +#          otherwise. (Since 2.4)

Whoa - you've missed 2.4 by 5 releases.  Now that 2.9 is released, new
additions should be marked since 2.10.

> +#
>  # @sync: what parts of the disk image should be copied to the destination
>  #        (all the disk, only the sectors allocated in the topmost image, or
>  #        only new I/O).
> @@ -1533,7 +1537,7 @@
>    'data': { '*job-id': 'str', 'device': 'str', 'target': 'str',
>              '*format': 'str', '*node-name': 'str', '*replaces': 'str',
>              'sync': 'MirrorSyncMode', '*mode': 'NewImageMode',
> -            '*speed': 'int', '*granularity': 'uint32',
> +            '*speed': 'int', '*bitmap': 'str', '*granularity': 'uint32',
>              '*buf-size': 'int', '*on-source-error': 'BlockdevOnError',
>              '*on-target-error': 'BlockdevOnError',
>              '*unmap': 'bool' } }
> @@ -1652,6 +1656,10 @@
>  #
>  # @speed:  the maximum speed, in bytes per second
>  #
> +# @bitmap: the name of dirty bitmap if sync is "incremental".
> +#          Must be present if sync is "incremental", must NOT be present
> +#          otherwise. (Since 2.4)

and again

> +#
>  # @sync: what parts of the disk image should be copied to the destination
>  #        (all the disk, only the sectors allocated in the topmost image, or
>  #        only new I/O).
> @@ -1694,7 +1702,7 @@
>    'data': { '*job-id': 'str', 'device': 'str', 'target': 'str',
>              '*replaces': 'str',
>              'sync': 'MirrorSyncMode',
> -            '*speed': 'int', '*granularity': 'uint32',
> +            '*speed': 'int', '*bitmap': 'str', '*granularity': 'uint32',
>              '*buf-size': 'int', '*on-source-error': 'BlockdevOnError',
>              '*on-target-error': 'BlockdevOnError',
>              '*filter-node-name': 'str' } }
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

           reply	other threads:[~2017-05-02 15:52 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAKVPjOY+sK5gnMGVX18VWk5sifnasPGeO61J_7zV12GZ_3nHrw@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9325e46-a7be-9213-76d0-c1c0a7519722@redhat.com \
    --to=eblake@redhat.com \
    --cc=Qemu-devel@nongnu.org \
    --cc=daniel.kucera@gmail.com \
    --cc=qemu-block@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).