Received: from eggs.gnu.org ([2001:4830:134:3::10]:53252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0rl8-0000IQ-JZ for qemu-devel@nongnu.org; Thu, 12 May 2016 10:38:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0rl3-000521-C7 for qemu-devel@nongnu.org; Thu, 12 May 2016 10:38:37 -0400 Date: Thu, 12 May 2016 16:38:22 +0200 From: Kevin Wolf Message-ID: <20160512143822.GE4794@noname.redhat.com> References: <1462677405-4752-1-git-send-email-eblake@redhat.com> <1462677405-4752-5-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1462677405-4752-5-git-send-email-eblake@redhat.com> 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 Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, kwolf@nongnu.org, mreitz@redhat.com 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. > > Signed-off-by: Eric Blake 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. Maybe negative length and offset work as a replacement. Kevin