]> Git Repo - qemu.git/commit
block/io.c: fix for the allocation failure
authorAndrey Shinkevich <[email protected]>
Fri, 5 Apr 2019 14:24:04 +0000 (17:24 +0300)
committerStefan Hajnoczi <[email protected]>
Fri, 10 May 2019 09:53:21 +0000 (10:53 +0100)
commit118f99442d3a8ce47836978cddd9206ac2d2b001
treeaefb09d2f47cd533a1a4efd2bd6871c5e5b3a378
parent66a5bdf3096cf8bc8c41eb7adcc9d10edef07a9d
block/io.c: fix for the allocation failure

On a file system used by the customer, fallocate() returns an error
if the block is not properly aligned. So, bdrv_co_pwrite_zeroes()
fails. We can handle that case the same way as it is done for the
unsupported cases, namely, call to bdrv_driver_pwritev() that writes
zeroes to an image for the unaligned chunk of the block.

Suggested-by: Denis V. Lunev <[email protected]>
Signed-off-by: Andrey Shinkevich <[email protected]>
Reviewed-by: John Snow <[email protected]>
Message-id: 1554474244[email protected]
Message-Id: <1554474244[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
block/io.c
This page took 0.020659 seconds and 4 git commands to generate.