Received: from eggs.gnu.org ([2001:4830:134:3::10]:56833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyxb-0005tD-6i for qemu-devel@nongnu.org; Fri, 15 Apr 2016 04:18:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqyxX-0006RS-6F for qemu-devel@nongnu.org; Fri, 15 Apr 2016 04:18:39 -0400 Date: Fri, 15 Apr 2016 10:18:22 +0200 From: Kevin Wolf Message-ID: <20160415081822.GB4341@noname.redhat.com> References: <1460545601-29196-1-git-send-email-kwolf@redhat.com> <1460545601-29196-2-git-send-email-kwolf@redhat.com> <57102473.3070807@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <57102473.3070807@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH for-2.6 1/2] qemu-io: Support 'aio_write -z' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 15.04.2016 um 01:14 hat Max Reitz geschrieben: > On 13.04.2016 13:06, Kevin Wolf wrote: > > This allows testing blk_aio_write_zeroes(). > >=20 > > Signed-off-by: Kevin Wolf > > --- > > qemu-io-cmds.c | 64 +++++++++++++++++++++++++++++++++++++++++++-------= -------- > > 1 file changed, 48 insertions(+), 16 deletions(-) >=20 > Despite the continuing use of int instead of bool where the latter would > be appropriate and of "9" instead of "BDRV_SECTOR_BITS": I considered whether to use bool, but having a few ints and then a bool for flags in the same struct would be inconsistent. We can have a cleanup patch on top that changes all instances. Same thing really with the explicit 9. I didn't even notice it, but this is just copied code and changing it in one instance only would be inconsistent. Kevin --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXEKPOAAoJEH8JsnLIjy/WUFUP/Ri5c10OAZlDe3/vR0dSEt/k G6wgw7cBqEqJc8pc6s5Nm++z6Wzlui3Qm8WSgoKUDpyybyZaYNuUnr5Bcw6Mpdy9 M4jrLin8gn228l6NtidGMg56Iv17K0YSbVwQx54pqMvdJBvwm/CJP0IQTn7+27XN sXdELWHD2M3bMAAr3PREgpTjmOycWcosY2egIMwkeluq5yleer3JMYQbjzOvBhkE aOGmPVLw3U4FhTAEfMfUQwzj/9yz10f/0VUb7FhoXEFQOD4otRj8WhgNYTCn+LRj 3YJoFflXF5EEXzAjyJdUFJn8hyBG5m+U6zrw41dZvVWfe/POJ4L48OubtRM4aMiT VNhVOkx7ONnsJGNq/TRL4q5/iahLu3eI7KUuHc/C5/xqC4tR/wExWMUFizDx3l8E oI663yZCdwPnN6sYMHtfISSb/a+AQPsTRvabIX674TIoO5inbaff5CH6smetaFh4 heYgDvUM/IT4SeayW7ub5jtaLWWE7CCE2BYtTYvL4DyAfRH6+RJxtxH5mDq2lPta tNtS0LBsnKPqKgvii1rjoD6zLkvlztVHPvp9qRRik9BHS7rohjuyYYEsB2hWu7Z/ hqgiNI9TUhnHr3J3A+MPHT0goPOas54Z9PR7G+GMibkNXY2kZ3mbn4fYX/NOA6yT z9dKlXvdkSQZf/js/gQH =J45q -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--