Received: from eggs.gnu.org ([2001:4830:134:3::10]:49003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCqew-0000y6-Ro for qemu-devel@nongnu.org; Tue, 14 Jun 2016 11:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCqeq-0001yE-RA for qemu-devel@nongnu.org; Tue, 14 Jun 2016 11:53:45 -0400 References: <20160610185750.30956-1-mreitz@redhat.com> From: Max Reitz Message-ID: <8109c429-994c-c243-de78-95dcefc1ca25@redhat.com> Date: Tue, 14 Jun 2016 17:53:25 +0200 MIME-Version: 1.0 In-Reply-To: <20160610185750.30956-1-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WM0L1bbUgmopPfObD7H3SWjCrT00FMnrr" Subject: Re: [Qemu-devel] [PATCH v3 0/5] block/mirror: Fix (?) target backing BDS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Kevin Wolf , Fam Zheng This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WM0L1bbUgmopPfObD7H3SWjCrT00FMnrr From: Max Reitz To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Kevin Wolf , Fam Zheng Message-ID: <8109c429-994c-c243-de78-95dcefc1ca25@redhat.com> Subject: Re: [PATCH v3 0/5] block/mirror: Fix (?) target backing BDS References: <20160610185750.30956-1-mreitz@redhat.com> In-Reply-To: <20160610185750.30956-1-mreitz@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10.06.2016 20:57, Max Reitz wrote: > Issue #1: If the target image does not have a backing BDS before mirror= > completion, qemu tries really hard to give it a backing BDS. If the > source has a backing BDS, it will actually always "succeed". > In some cases, the target is not supposed to have a backing BDS, though= > (absolute-paths: because of sync=3Dfull; existing: because the target > image does not have a backing file; blockdev-mirror: because of an > explicit "backing": ""). Then, this is pretty bad behavior. >=20 > This should generally not change the target's visible data, but it stil= l > is ugly. >=20 > Issue #2: Currently the backing chain of the target is basically opened= > using bdrv_open_backing_file() (except for sometimes=E2=84=A2). This re= sults in > multiple BDSs for a single physical file, which is bad. In most use > cases, this is only temporary, but it still is bad. >=20 > If we can reuse the existing backing chain of the source (which is with= > drive-mirror in "absolute-paths" mode), we should just do so. Following encouragement from Kevin on IRC, and apparently his acceptance of my commit message proposal for patch 3, I have applied the series to my block branch with said commit message added to patch 3 and the superfluous imports removed from patch 4 (thanks, Fam!). Max --WM0L1bbUgmopPfObD7H3SWjCrT00FMnrr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXYCh1AAoJEDuxQgLoOKytmjgIAJgu0pmMA50Dz5EW2r5yIt9+ BaPaLjAi7EjrmiMmqHl9EHZoU/qZPR54+FT6VNiaHNR22UgseYmV0zSUQKqreblj QzGKfuO+voyDu7ykLRt+LsKZspL9OB4d8b0BnqfZVMNtLumPA9M3cptJaBVoi9OQ 01Mq1FUAgq0pWt17aB0NLq2nPVOYWH0Ol59WCdv3dbVjL+bEOvjlL1XKtiFLwqni ebPvtJp8w1x8LlsRWrUsf55CLWz93CVKu9kvCu/krMn4/NUd2yyMaRl/K9A4bQlD 0DdkCzMpTaQpPdsh0osqns7ebTOcCCA+iDG0i8EHIHGeJz4/oaOIy8ovXNX2ot8= =KH2X -----END PGP SIGNATURE----- --WM0L1bbUgmopPfObD7H3SWjCrT00FMnrr--