From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKY25-0005u3-Nc for qemu-devel@nongnu.org; Fri, 13 Sep 2013 14:23:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKY21-0007fs-5p for qemu-devel@nongnu.org; Fri, 13 Sep 2013 14:23:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKY20-0007ff-TC for qemu-devel@nongnu.org; Fri, 13 Sep 2013 14:23:49 -0400 Message-ID: <5233582C.9080407@redhat.com> Date: Fri, 13 Sep 2013 12:23:40 -0600 From: Eric Blake MIME-Version: 1.0 References: <1379067909-22984-1-git-send-email-pl@kamp.de> <1379067909-22984-8-git-send-email-pl@kamp.de> In-Reply-To: <1379067909-22984-8-git-send-email-pl@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K7EjaNBkQ4iSg5wJw5emhnBt4RwugSgPe" Subject: Re: [Qemu-devel] [PATCH 07/12] block: introduce bdrv_zeroize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, ronniesahlberg@gmail.com, stefanha@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, pbonzini@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --K7EjaNBkQ4iSg5wJw5emhnBt4RwugSgPe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/13/2013 04:25 AM, Peter Lieven wrote: > this patch adds a call to completely zero out a block device. > the operation is speed up by checking the block status and s/speed/sped/ > only writing zeroes to the device if they currently do not > return zeroes. optionally the zero writing can be speed up and again > by setting the flag BDRV_REQ_MAY_UNMAP to emulate the zero > write by unmapping if the driver supports it. >=20 > Signed-off-by: Peter Lieven > --- > block.c | 45 +++++++++++++++++++++++++++++++++++++++++= ++++ > include/block/block.h | 1 + > 2 files changed, 46 insertions(+) >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --K7EjaNBkQ4iSg5wJw5emhnBt4RwugSgPe 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/ iQEcBAEBCAAGBQJSM1gsAAoJEKeha0olJ0NqtLgH/3KhaRRMasrgxAZBKxJC/Xma UyDEJz64oZg5X28UzobvmQM06QIROIAVUpvAoVOCy61z/+rQdym8Os9RhA23XFIv u8SBxxZkuiTu1ssnryNagCAQGzLFDKmo3wDB4VeTLAKE0itRdUSXCM0WLRtnqPjZ lQvGyrZevryHj0AcRjMggQWzKf/5hFAL2ic5fFFx7BoI78uvUpIaBk8IFEGxnjgU LruxsKfzVTqKnyImz9LIsnrXccdciDr7u3y2AH+SBoySaBxXvmz1d3QKKw/caH0u ftRU/hjL1DIOLxhFTcb3GgdHU6wAfEfGFEKFb63VwKGEnUaq7T+elxloMnRYYb8= =OU8l -----END PGP SIGNATURE----- --K7EjaNBkQ4iSg5wJw5emhnBt4RwugSgPe--