]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/file-posix: Preallocation for truncate
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 20:20:59 +0000 (22:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:01 +0000 (17:45 +0200)
commit35d72602ec5709b5078ff0e6361eee57fb652f98
treea4ed265119390a87e789442330e3f05b5e082d1d
parentd0bc9e5d5e86d5dd566e2d967af8476cee351c93
block/file-posix: Preallocation for truncate

By using raw_regular_truncate() in raw_truncate(), we can now easily
support preallocation.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170613202107.10125-9-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c