Received: from eggs.gnu.org ([2001:4830:134:3::10]:46840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgVfs-0005lT-1i for qemu-devel@nongnu.org; Fri, 10 Apr 2015 05:56:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgVfn-0000iw-2h for qemu-devel@nongnu.org; Fri, 10 Apr 2015 05:56:32 -0400 Date: Fri, 10 Apr 2015 10:56:23 +0100 From: Stefan Hajnoczi Message-ID: <20150410095623.GB23555@stefanha-thinkpad.redhat.com> References: <20150402132857.GA26513@igalia.com> <20150409103928.GB2783@stefanha-thinkpad.redhat.com> <20150409124000.GA2500@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <20150409124000.GA2500@igalia.com> Subject: Re: [Qemu-devel] [Qemu-block] [RFC] Intermediate block mirroring List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 09, 2015 at 02:40:00PM +0200, Alberto Garcia wrote: > On Thu, Apr 09, 2015 at 11:39:28AM +0100, Stefan Hajnoczi wrote: >=20 > > > The goal would be to convert this: > > >=20 > > > [A] -> [B] -> [C] -> [D] > > >=20 > > > into this: > > >=20 > > > [A] -> [B] -> [X] -> [D] > > >=20 > > > where [D] is the active image and [X] would be a copy of [C]. The > > > latter would be unlinked from the chain. > > >=20 > > > A use case would be to move disk images across different storage > > > backends. > >=20 > > The simple solution to that problem is: > >=20 > > Assumption: backing files are read only. (True in most cases.) > >=20 > > 1. Copy the backing files using cp(1) or another method. > > 2. Issue QMP 'change-backing-file' command so that [D] uses [X] instead > > of [C]. > >=20 > > So it can be done today already. >=20 > So do you think it would be better to implement this somewhere else? > The code that I have for QEMU is quite simple, the actual algorithm > doesn't change, it only needs to do the changing of backing files in > mirror_exit(). I'll take a look at your patch series, maybe there are advantages to doing it within QEMU. Stefan --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVJ55HAAoJEJykq7OBq3PI7QoH/RRWHwbRD1woVnJ9H2hSlhPY 60AB810MdncEOL4Im3ORmoYqsiywLmgduskQXlUNoTjx8JOtTsKkACj9LG6oBtlj /dmbpeCxdjqIFxQUi3Z4c43Nxqzkw6YLHdTzhBUmXKK0QYq7jmjvdOi6ipuuqdjK oUgjgfrI8GRIn6E4QComy7d+VY6EaDY5YxEuWxv/QhnpeJ5oV6hDTlcZOmSVLB44 FJ93HNO3+JF4Raejz0d4Q2fzK8mu2PDwVtwDEF79zCg7hhm9VsZUZgcZwFfVhwna zZAXpQgx+E0gaFuH5Hbr1kW0wvCBXu77Br++L91fdsu/LZdCmC19BikEwVaIRP0= =dceg -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8--