Received: from eggs.gnu.org ([2001:4830:134:3::10]:50912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azpi1-0005UZ-Vl for qemu-devel@nongnu.org; Mon, 09 May 2016 14:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azphz-0002g9-KY for qemu-devel@nongnu.org; Mon, 09 May 2016 14:15:08 -0400 References: <1462677405-4752-1-git-send-email-eblake@redhat.com> <1462677405-4752-5-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: Date: Mon, 9 May 2016 20:14:58 +0200 MIME-Version: 1.0 In-Reply-To: <1462677405-4752-5-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bduBPwGXBaUno5qkgUMstkMaNsd6MapAg" Subject: Re: [Qemu-devel] [PATCH v5 4/6] qemu-io: Allow unaligned access by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@nongnu.org, Kevin Wolf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bduBPwGXBaUno5qkgUMstkMaNsd6MapAg From: Max Reitz To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@nongnu.org, Kevin Wolf Message-ID: Subject: Re: [PATCH v5 4/6] qemu-io: Allow unaligned access by default References: <1462677405-4752-1-git-send-email-eblake@redhat.com> <1462677405-4752-5-git-send-email-eblake@redhat.com> In-Reply-To: <1462677405-4752-5-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 08.05.2016 05:16, Eric Blake wrote: > There's no reason to require the user to specify a flag just so > they can pass in unaligned numbers. Keep 'read -p' and 'write -p' > as no-ops so that I don't have to hunt down and update all users > of qemu-io, but otherwise make their behavior default as 'read' and > 'write'. Also fix 'write -z', 'readv', 'writev', 'writev', > 'aio_read', 'aio_write', and 'aio_write -z'. For now, 'read -b', > 'write -b', and 'write -c' still require alignment (and 'multiwrite', > but that's slated to die soon). >=20 > qemu-iotest 23 is updated to match, as the only test that was > previously explicitly expecting an error on an unaligned request. >=20 > Signed-off-by: Eric Blake >=20 > --- > v5: use bool operator, drop spurious spaces in .args If I had realized how many of these spaces there are, I probably wouldn't have asked for it. :-) > --- > qemu-io-cmds.c | 73 +- > tests/qemu-iotests/023.out | 2160 +++++++++++++++++++++++++++++-------= -------- > 2 files changed, 1457 insertions(+), 776 deletions(-) Reviewed-by: Max Reitz --bduBPwGXBaUno5qkgUMstkMaNsd6MapAg 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 iQEcBAEBCAAGBQJXMNOiAAoJEDuxQgLoOKytZqkH/0zdk1hqz32Zl4rci5i5jObP GRBTHLZhA+dZU/lQvwnQWEL61hizX9j2d6Pc5aEn2/pq8x9uUvRinNYHFnwOBoon R81uUzSuNYlJDBF2QZcsb2g7gZ0N73VKTL6hui04oenNOYQVT56ozURgzZtng+ze RL1K1e/7tWdpyHD5FHkK1lAqCfAQNyJoVybrfqgBjvdpC3d03MwFspnyAuv/SneX KJB75DT24wu8DCaWCbEfvfp7KH7PXV7mH3HiPxOUCKhpUFs5QO2WHy0FnemSl0yW z7IAnHj9o9gSzOTI5fkXUT8CyLyJSqntBXo4tFY4I0LascQjznmmBRlM53Iahes= =SN+u -----END PGP SIGNATURE----- --bduBPwGXBaUno5qkgUMstkMaNsd6MapAg--