Skip to content
Commit 294682cc authored by Andrey Shinkevich's avatar Andrey Shinkevich Committed by Eric Blake
Browse files

block: workaround for unaligned byte range in fallocate()



Revert the commit 118f9944 '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: default avatarKevin Wolf <kwolf@redhat.com>
Suggested-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarDenis V. Lunev <den@openvz.org>
Message-Id: <1566913973-15490-1-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: default avatarEric Blake <eblake@redhat.com>
parent 5de47735
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment