From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUeoF-0007rl-UH for qemu-devel@nongnu.org; Fri, 11 Oct 2013 11:39:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUeoA-00070h-CB for qemu-devel@nongnu.org; Fri, 11 Oct 2013 11:39:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUeoA-00070S-2d for qemu-devel@nongnu.org; Fri, 11 Oct 2013 11:39:18 -0400 Message-ID: <52581B81.4080701@redhat.com> Date: Fri, 11 Oct 2013 09:38:41 -0600 From: Eric Blake MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="58rKaThveCvvkK1psth5MOraph6c6rLUh" Subject: Re: [Qemu-devel] [RFC PATCH] drive-backup 'stream' mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Richter , qemu-devel Cc: Kevin Wolf , Paolo Bonzini , imain , Fam Zheng , stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --58rKaThveCvvkK1psth5MOraph6c6rLUh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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). >=20 >=20 >=20 > 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? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --58rKaThveCvvkK1psth5MOraph6c6rLUh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSWBuBAAoJEKeha0olJ0NqV9QH/iZlFG3WmtTQaMxzd0oIL0bH nXdVFzq5BXPPL2bWpsBQynRucg53Ds3t1msi4mH9V70UWIaovofDLNsK+WYIoTHE wTVjbCOlynU7B/AU4HLsCHyMFoJup3XJbKTAFgNowuV7kKtz6HFTDFMPU8jfSwUE dEUn8NzfMKfofyqw2CKkYrlkCybrQsIGwZesDE2D2Old5YN9ZHmuXvtdMXU+Jy7B qpTn6WZrO98QoaimYs4VDLAUk++n47VuujOd8Fy414LhftmXIBlnQxSi+9ev8iKe 1jTIE6EZerD4jhhkkg+KVxI14xQmROrFSMf3oJbsk+Bj2348afDD8dizZhQqe18= =EuPQ -----END PGP SIGNATURE----- --58rKaThveCvvkK1psth5MOraph6c6rLUh--