aboutsummaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2017-06-13 22:20:58 +0200
committerMax Reitz <mreitz@redhat.com>2017-07-11 17:45:01 +0200
commitd0bc9e5d5e86d5dd566e2d967af8476cee351c93 (patch)
tree75c91a5e626e33e7273bfead569e9adf13ec1686 /stubs
parent9f63b07ee7feefd5f5a1175614b6948264e9d7e0 (diff)
downloadqemu-d0bc9e5d5e86d5dd566e2d967af8476cee351c93.zip
qemu-d0bc9e5d5e86d5dd566e2d967af8476cee351c93.tar.gz
qemu-d0bc9e5d5e86d5dd566e2d967af8476cee351c93.tar.bz2
block/file-posix: Generalize raw_regular_truncate
Currently, raw_regular_truncate() is intended for setting the size of a newly created file. However, we also want to use it for truncating an existing file in which case only the newly added space (when growing) should be preallocated. This also means that if resizing failed, we should try to restore the original file size. This is important when using preallocation. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20170613202107.10125-8-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'stubs')
0 files changed, 0 insertions, 0 deletions