From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, kwolf@nongnu.org,
mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH v5 4/6] qemu-io: Allow unaligned access by default
Date: Thu, 12 May 2016 09:50:30 -0600 [thread overview]
Message-ID: <5734A646.3080100@redhat.com> (raw)
In-Reply-To: <20160512143822.GE4794@noname.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]
On 05/12/2016 08:38 AM, Kevin Wolf wrote:
> Am 08.05.2016 um 05:16 hat Eric Blake geschrieben:
>> 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).
>>
>> qemu-iotest 23 is updated to match, as the only test that was
>> previously explicitly expecting an error on an unaligned request.
I found that one by 'git grep "sector aligned"', and tested with ./check
-qcow2...
>>
>> Signed-off-by: Eric Blake <eblake@redhat.com>
>
> This breaks qemu-iotests 136 for raw. It's pretty obvious that this is a
> test case problem (uses unaligned requests to test error accounting), so
> I'm not dropping the patch, but please do send a follow-up.
...which explains why I missed this failure with ./check -raw. Will
fix, and maybe I should have grepped a bit harder, since it is fairly
obvious:
tests/qemu-iotests/136: # Two types of invalid operations:
unaligned length and unaligned offset
I will also check if this needs updating:
tests/qemu-iotests/109: # qemu-img compare can't handle unaligned
file sizes
as both of those tests run under -raw but not -qcow2
>
> Maybe negative length and offset work as a replacement.
Indeed, since unaligned length and unaligned offset are now explicitly
handled by the block layer.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-05-12 15:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-08 3:16 [Qemu-devel] [PATCH v5 0/6] qemu-io: UI enhancements Eric Blake
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 1/6] qemu-io: Add missing option documentation Eric Blake
2016-05-09 17:43 ` Max Reitz
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 2/6] qemu-io: Make 'open' subcommand more like command line Eric Blake
2016-05-09 18:10 ` Max Reitz
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 3/6] qemu-io: Use bool for command line flags Eric Blake
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 4/6] qemu-io: Allow unaligned access by default Eric Blake
2016-05-09 18:14 ` Max Reitz
2016-05-12 14:38 ` Kevin Wolf
2016-05-12 15:50 ` Eric Blake [this message]
2016-05-12 21:52 ` Eric Blake
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 5/6] qemu-io: Add 'write -f' to test FUA flag Eric Blake
2016-05-09 18:21 ` Max Reitz
2016-05-08 3:16 ` [Qemu-devel] [PATCH v5 6/6] qemu-io: Add 'write -z -u' to test MAY_UNMAP flag Eric Blake
2016-05-08 3:35 ` [Qemu-devel] [PATCH v5 0/6] qemu-io: UI enhancements Eric Blake
2016-05-09 18:23 ` Max Reitz
2016-05-10 8:35 ` Kevin Wolf
2016-05-11 13:47 ` Max Reitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5734A646.3080100@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@nongnu.org \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.