Received: from eggs.gnu.org ([2001:4830:134:3::10]:35965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCTb6-0005e9-Qf for qemu-devel@nongnu.org; Mon, 13 Jun 2016 11:16:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCTb4-0000ao-On for qemu-devel@nongnu.org; Mon, 13 Jun 2016 11:16:15 -0400 Date: Mon, 13 Jun 2016 17:16:04 +0200 From: Kevin Wolf Message-ID: <20160613151604.GE5968@noname.str.redhat.com> References: <20160610185750.30956-1-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160610185750.30956-1-mreitz@redhat.com> Content-Transfer-Encoding: quoted-printable 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: Max Reitz Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Fam Zheng Am 10.06.2016 um 20:57 hat Max Reitz geschrieben: > 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. Reviewed-by: Kevin Wolf I'll still wait to apply the series so that you have a chance to answer Fam's question before it is in. Kevin