Andrey Shinkevich 118f99442d 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 <den@openvz.org>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1554474244-553661-1-git-send-email-andrey.shinkevich@virtuozzo.com
Message-Id: <1554474244-553661-1-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-05-10 10:53:21 +01:00
..
2019-04-30 15:29:00 +02:00
2019-01-04 11:15:09 +00:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-03-08 12:26:46 +01:00
2019-04-30 15:29:00 +02:00
2019-04-30 15:29:00 +02:00
2019-05-07 17:14:21 +02:00
2019-04-30 15:29:00 +02:00