From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRPdr-0004MF-MV for qemu-devel@nongnu.org; Wed, 02 Oct 2013 12:51:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRPdn-0004uC-1k for qemu-devel@nongnu.org; Wed, 02 Oct 2013 12:51:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRPdm-0004tq-QL for qemu-devel@nongnu.org; Wed, 02 Oct 2013 12:51:10 -0400 Message-ID: <524C4EF6.6010306@redhat.com> Date: Wed, 02 Oct 2013 10:51:02 -0600 From: Eric Blake MIME-Version: 1.0 References: <1380029714-5239-1-git-send-email-pl@kamp.de> <1380029714-5239-14-git-send-email-pl@kamp.de> In-Reply-To: <1380029714-5239-14-git-send-email-pl@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0C2aFQq3gVvsULTfeTnWjLtHKkc5FjU8c" Subject: Re: [Qemu-devel] [PATCHv3 13/20] 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) --0C2aFQq3gVvsULTfeTnWjLtHKkc5FjU8c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/24/2013 07:35 AM, Peter Lieven wrote: > this patch adds a call to completely zero out a block device. > the operation is sped up by checking the block status and > only writing zeroes to the device if they currently do not > return zeroes. optionally the zero writing can be sped up > 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 | 37 +++++++++++++++++++++++++++++++++++++ > include/block/block.h | 1 + > 2 files changed, 38 insertions(+) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --0C2aFQq3gVvsULTfeTnWjLtHKkc5FjU8c 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/ iQEcBAEBCAAGBQJSTE72AAoJEKeha0olJ0Nqzt8IAIaYxJswr2qD8S3Q821prhEb TidX70t+lj1DQs2nrTJM7/SxEfmwTtjraHzSW7T9R8jX1/nh0+xlZKCAfHjIlB1p bag1uT41sgHn2/nJzQN6dLikkj01bsPxxOz6wWNOuIlwKIuBjen2vrtXOudzYG6P Amyd/GRCg7VKrKTHlSyPYWLsqG1/+cUctlTdFjWwKt1lPGuI/aMEYj4sEBV3owVz Q88S54gKHAsPOslUJaMHU4FQAwKN3cXmkovY5x6glVyNhBcWiMw9IMz3FreLLXJS V/i4eDpSXJm2CfabfxHctgMEse2yIQJgeeAG7FMYsv5QyL2rP4p6inQqiiT0POs= =bOHq -----END PGP SIGNATURE----- --0C2aFQq3gVvsULTfeTnWjLtHKkc5FjU8c--