Re: [Qemu-devel] [PATCH for-2.10 08/16] block/file-posix: Preallocation for truncate

2017-03-20 Thread Stefan Hajnoczi
On Mon, Mar 13, 2017 at 10:40:37PM +0100, Max Reitz wrote: > By using raw_regular_truncate() in raw_truncate(), we can now easily > support preallocation. > > Signed-off-by: Max Reitz > --- > block/file-posix.c | 22 ++ > 1 file changed, 10 insertions(+),

[Qemu-devel] [PATCH for-2.10 08/16] block/file-posix: Preallocation for truncate

2017-03-13 Thread Max Reitz
By using raw_regular_truncate() in raw_truncate(), we can now easily support preallocation. Signed-off-by: Max Reitz --- block/file-posix.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c