[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 6/6] block: Don't enforce 512 byte minimum align
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH 6/6] block: Don't enforce 512 byte minimum alignment |
Date: |
Wed, 8 Jun 2016 10:06:10 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 06/08/2016 08:10 AM, Kevin Wolf wrote:
> If block drivers say that they can do an alignment < 512 bytes, let's
> just suppose they mean it. raw-posix used to be an offender with respect
> to this, but it can actually deal with byte-aligned requests now.
>
> The default is still 512 bytes for any drivers that only implement
> sector-based interfaces, but it is 1 now for drivers that implement
> .bdrv_co_preadv.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 2 +-
> block/io.c | 8 +++-----
> 2 files changed, 4 insertions(+), 6 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH 5/6] raw-posix: Implement .bdrv_co_preadv/pwritev, (continued)
- [Qemu-block] [PATCH 5/6] raw-posix: Implement .bdrv_co_preadv/pwritev, Kevin Wolf, 2016/06/08
- [Qemu-block] [PATCH 3/6] block: Prepare bdrv_aligned_pwritev() for byte-aligned requests, Kevin Wolf, 2016/06/08
- [Qemu-block] [PATCH 4/6] raw-posix: Switch to bdrv_co_* interfaces, Kevin Wolf, 2016/06/08
- [Qemu-block] [PATCH 6/6] block: Don't enforce 512 byte minimum alignment, Kevin Wolf, 2016/06/08
- Re: [Qemu-block] [PATCH 0/6] block: Enable byte granularity I/O, Stefan Hajnoczi, 2016/06/13