qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qcow2: Metadata preallocation


From: Jamie Lokier
Subject: Re: [Qemu-devel] [PATCH] qcow2: Metadata preallocation
Date: Sun, 16 Aug 2009 17:48:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Filip Navara wrote:
> FILE_ATTRIBUTE_SPARSE_FILE? You can't actually set it when
> opening/creating the file, a separate call to
> DeviceIoControl/FSCTL_SET_SPARSE is needed.

I see that you increase the file size by writing zeros to the end.

Can't you use the Windows equivalent of unix ftruncate() to extend the
file instead, after FSCTL_SET_SPARSE?

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]