[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] block: workaround for unaligned byte range i
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2] block: workaround for unaligned byte range in fallocate() |
Date: |
Tue, 27 Aug 2019 08:55:35 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 8/27/19 8:52 AM, Andrey Shinkevich wrote:
> Revert the commit 118f99442d 'block/io.c: fix for the allocation failure'
> and use better error handling for file systems that do not support
> fallocate() for an unaligned byte range. Allow falling back to pwrite
> in case fallocate() returns EINVAL.
>
> Suggested-by: Kevin Wolf <address@hidden>
> Suggested-by: Eric Blake <address@hidden>
> Signed-off-by: Andrey Shinkevich <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
> ---
> block/file-posix.c | 7 +++++++
> block/io.c | 2 +-
> 2 files changed, 8 insertions(+), 1 deletion(-)
Queuing this in my NBD tree (as I performed testing on top of it when
working on NBD fast-zero).
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature