Received: from eggs.gnu.org ([2001:4830:134:3::10]:49501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9BNo-0002Dw-Ad for qemu-devel@nongnu.org; Tue, 22 Nov 2016 08:45:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9BNi-0006mZ-Vw for qemu-devel@nongnu.org; Tue, 22 Nov 2016 08:45:12 -0500 References: <20161121012439.2394-1-w90p710@gmail.com> <5833AE1C.2050708@gmail.com> From: Eric Blake Message-ID: Date: Tue, 22 Nov 2016 07:44:58 -0600 MIME-Version: 1.0 In-Reply-To: <5833AE1C.2050708@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9VqOXJsexpPU7O6KHbeNG3CFb7WebfH2P" Subject: Re: [Qemu-devel] [PATCH] block/mirror: enable detect zeroes when driving mirror List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: wyang , Vasiliy Tolstov Cc: jcody@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9VqOXJsexpPU7O6KHbeNG3CFb7WebfH2P From: Eric Blake To: wyang , Vasiliy Tolstov Cc: jcody@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Message-ID: Subject: Re: [Qemu-devel] [PATCH] block/mirror: enable detect zeroes when driving mirror References: <20161121012439.2394-1-w90p710@gmail.com> <5833AE1C.2050708@gmail.com> In-Reply-To: <5833AE1C.2050708@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/21/2016 08:31 PM, wyang wrote: > On 2016=E5=B9=B411=E6=9C=8821=E6=97=A5 14:51, Vasiliy Tolstov wrote: >> >> 21 =D0=9D=D0=BE=D1=8F 2016 =D0=B3. 4:27 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7= =D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Yang Wei" > > =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB= : >> > >> > In order to preserve sparse disk image, detect_zeroes >> > should also be enabled when bdrv_get_block_status_above() >> > returns BDRV_BLOCK_DATA >> > >> > Signed-off-by: Yang Wei > >> > --- >> >> Hi, does this patch fixes bug >> https://bugzilla.redhat.com/show_bug.cgi?id=3D1219541 ? Or it unrelate= d >> to this issue? >> > yes, you also need to backport the functionality of NBD's write > zeroes( fa778f and 1f4d6d) And also my posted (but not yet applied) patch: nbd: Allow unmap and fua during write zeroes https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg03496.html --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --9VqOXJsexpPU7O6KHbeNG3CFb7WebfH2P 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYNEvbAAoJEKeha0olJ0Nq8q0IAKAeRzNsD+W8Nc4+pWBMuJqJ ZVi3v6GLg/wSM46V7IAWJQc4ojTtm6et95diJ88RQHS9aUEtEI/Phg+FodbBybYN xL7UqziGkvoHjg/S7ASB9wTK4iBOls9SEXenULVR5oB2INDlPFK7DOQCMcVVnnGW RgXXsMOwWHCTc9wCNIDM1s848TlCJ6QfMA2gX6rFpU+tcAvubhxO4RO7A4Kt0SKo 12ZOmuFJORZVWcshpMmPd7HGMpAHSMagcjQZZbbm+oTT1fsQt3fVjwSJh+ukThXD 5XNL6TdwTI4jTT7bBy+a9O39WQgYcj+sHjr7KcZCmWe45Dq5QW4nTziOK72gTo8= =ec1N -----END PGP SIGNATURE----- --9VqOXJsexpPU7O6KHbeNG3CFb7WebfH2P--