block/file-posix: Let post-EOF fallocate serialize
commit292d06b925b2787ee6f2430996b95651cae42fce
authorMax Reitz <mreitz@redhat.com>
Fri, 1 Nov 2019 15:25:10 +0000 (1 16:25 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 4 Nov 2019 08:33:51 +0000 (4 09:33 +0100)
tree5551cfcad705086a27aff3ec5c123ac32934d85d
parentc28107e9e55b11cd35cf3dc2505e3e69d10dcf13
block/file-posix: Let post-EOF fallocate serialize

The XFS kernel driver has a bug that may cause data corruption for qcow2
images as of qemu commit c8bb23cbdbe32f.  We can work around it by
treating post-EOF fallocates as serializing up until infinity (INT64_MAX
in practice).

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20191101152510.11719-4-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c