qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Wolfgang Richter <wolf@cs.cmu.edu>, qemu-devel <qemu-devel@nongnu.org>
Cc: Kevin Wolf <kwolf@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>, imain <imain@redhat.com>,
	Fam Zheng <famz@redhat.com>,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode
Date: Fri, 11 Oct 2013 09:38:41 -0600	[thread overview]
Message-ID: <52581B81.4080701@redhat.com> (raw)
In-Reply-To: <CACO=3k61zvf2Uu0GU2R8VA=poVPeGJ215Uoeb6x8Q6_5mWNdvg@mail.gmail.com>

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

On 10/11/2013 09:18 AM, Wolfgang Richter wrote:
> Idea: Introduce a mode for drive-backup that duplicates writes to
> another target, not CoW.  It is useful for introspecting (my use
> case), and for keeping a remote block device in sync with writes
> (helps with migration or backup).
> 
> 

> 
> This is based off of v1.6.0 code.

Best to rebase it against latest qemu.git.

> +++ b/qapi-schema.json
> @@ -1311,12 +1311,14 @@
>  #
>  # @full: copies data from all images to the destination
>  #
> -# @none: only copy data written from now on
> +# @none: only copy on write data written from now on
> +#
> +# @stream: copy every new write to target

Add the designation '(since 1.7)' to make it obvious when this mode was
introduced.

>  #
>  # Since: 1.3
>  ##
>  { 'enum': 'MirrorSyncMode',
> -  'data': ['top', 'full', 'none'] }
> +  'data': ['top', 'full', 'none', 'stream'] }

MirrorSyncMode is used by multiple commands; your summary mentions how
it would affect 'drive-backup', but what happens to 'drive-mirror'?  For
that matter, why isn't 'drive-mirror' with mode 'none' doing what you
already want?

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


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

  reply	other threads:[~2013-10-11 15:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 15:18 [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode Wolfgang Richter
2013-10-11 15:38 ` Eric Blake [this message]
2013-10-14 20:10   ` Wolfgang Richter
2013-10-14 20:24     ` Eric Blake
2013-10-15  7:26     ` Paolo Bonzini
2013-10-12  5:47 ` Fam Zheng
2013-10-14 20:14   ` Wolfgang Richter

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=52581B81.4080701@redhat.com \
    --to=eblake@redhat.com \
    --cc=famz@redhat.com \
    --cc=imain@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=wolf@cs.cmu.edu \
    /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).