Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file-posix: Handle
EINVAL
fallocate return value
The `detect-zeroes=unmap` option may issue unaligned `FALLOC_FL_PUNCH_HOLE` requests, raw block devices can (and will) return `EINVAL`, qemu should then write the zeroes to the blockdev instead of issuing an `IO_ERROR`. The problem can be reprodced like this: $ qemu-io -c 'write -P 0 42 1234' --image-opts driver=host_device,filename=/dev/loop0,detect-zeroes=unmap write failed: Invalid argument Signed-off-by: Antoine Damhet <[email protected]> Message-Id: <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
- Loading branch information