]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/file-posix: Let post-EOF fallocate serialize
authorMax Reitz <mreitz@redhat.com>
Fri, 1 Nov 2019 15:25:10 +0000 (16:25 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 12 Nov 2019 17:59:58 +0000 (11:59 -0600)
commit7db05c8a732fbdc986a40aadf0de6dd23057d044
tree96e26ff94e778e98af7d2afe5bac1fdf1252d464
parentd9b88f7e0d56feb4d7daa2506e2756fc48e975a1
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>
(cherry picked from commit 292d06b925b2787ee6f2430996b95651cae42fce)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/file-posix.c