aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2021-05-27 19:20:20 +0200
committerKevin Wolf <kwolf@redhat.com>2021-06-02 14:23:20 +0200
commitfa95e9fbab2c19fc07ba82988b1690f8a6ff171b (patch)
treeb05b5ef713fd08f51bcb62700f0d000119f0a406 /block.c
parent73ebf29729d1a40feaa9f8ab8951b6ee6dbfbede (diff)
downloadqemu-fa95e9fbab2c19fc07ba82988b1690f8a6ff171b.zip
qemu-fa95e9fbab2c19fc07ba82988b1690f8a6ff171b.tar.gz
qemu-fa95e9fbab2c19fc07ba82988b1690f8a6ff171b.tar.bz2
block/file-posix: Try other fallbacks after invalid FALLOC_FL_ZERO_RANGE
If fallocate(... FALLOC_FL_ZERO_RANGE ...) returns EINVAL, it's likely an indication that the file system is buggy and does not implement unaligned accesses right. We still might be lucky with the other fallback fallocate() calls later in this function, though, so we should not return immediately and try the others first. Since FALLOC_FL_ZERO_RANGE could also return EINVAL if the file descriptor is not a regular file, we ignore this filesystem bug silently, without printing an error message for the user. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210527172020.847617-3-thuth@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions