aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-11-18 11:23:05 +0100
committerKevin Wolf <kwolf@redhat.com>2014-11-18 12:09:00 +0100
commit731de38052b245eab79e417aeac5e1dcebe6437f (patch)
tree20d6d63241962ab412c676feddabe8d6d00c4901 /scripts/switch-timer-api
parentblock/raw-posix: Fix preallocating write() loop (diff)
downloadqemu-731de38052b245eab79e417aeac5e1dcebe6437f.tar.xz
qemu-731de38052b245eab79e417aeac5e1dcebe6437f.zip
block/raw-posix: Only sync after successful preallocation
The loop which filled the file with zeroes may have been left early due to an error. In that case, the fsync() should be skipped. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions