From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHjf-0002Qq-GY for qemu-devel@nongnu.org; Fri, 29 Apr 2016 19:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awHjT-0005tA-Qw for qemu-devel@nongnu.org; Fri, 29 Apr 2016 19:22:06 -0400 References: <1461960516-4717-1-git-send-email-eblake@redhat.com> <1461960516-4717-14-git-send-email-eblake@redhat.com> From: Eric Blake Message-ID: <5723EC74.404@redhat.com> Date: Fri, 29 Apr 2016 17:21:24 -0600 MIME-Version: 1.0 In-Reply-To: <1461960516-4717-14-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="crhkMOR1jSDF65dnVORbOuEd6rduVnDk0" Subject: Re: [Qemu-devel] [PATCH v4 13/14] block: Switch blk_write_zeroes() to byte interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , "Denis V. Lunev" , "open list:Block layer core" , Stefan Hajnoczi , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --crhkMOR1jSDF65dnVORbOuEd6rduVnDk0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/29/2016 02:08 PM, Eric Blake wrote: > Sector-based blk_write() should die; convert the one-off > variant blk_write_zeroes(). >=20 > Signed-off-by: Eric Blake > Acked-by: Denis V. Lunev > --- > +++ b/include/sysemu/block-backend.h > @@ -96,8 +96,8 @@ int blk_pread_unthrottled(BlockBackend *blk, int64_t = offset, uint8_t *buf, > int count); > int blk_write(BlockBackend *blk, int64_t sector_num, const uint8_t *bu= f, > int nb_sectors); > -int blk_write_zeroes(BlockBackend *blk, int64_t sector_num, > - int nb_sectors, BdrvRequestFlags flags); > +int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset, > + int count, BdrvRequestFlags flags); Maintainer may want to fix indentation if I don't need to respin. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --crhkMOR1jSDF65dnVORbOuEd6rduVnDk0 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/ iQEcBAEBCAAGBQJXI+x0AAoJEKeha0olJ0NqnRUH/RqQk6GVJdwUELaRVIB7XbG8 Tz47sx54uCKgWUFF4tAUHrKQF3Ssvq8BF/B57E3PRrJC9rg383cXvOvAdAgJ0cXw Y14mILm8roiq9cohxHd22AGDHwKG6eAeiSbM0YdO/VERGAG5jKjCAkONIsQk0MZ0 h9PyBhaoAOR/GWY+pIIFM4hzw0cY1wp5CCRlBc9OsT034cQ0pkiY3/c+iZ6BxHx8 p9ENrjv4RUqmjdqKKSwEI/eBy5fOeTbUlGKAD+/iz/khd5LomRLRAfJkK8++EKpn 5/j+uRqEWiTu5+aMAr89A7ZlkTonYADGB3QlRYeNF6cr6B4zmapqXk2xsDuwycQ= =TGwO -----END PGP SIGNATURE----- --crhkMOR1jSDF65dnVORbOuEd6rduVnDk0--