[Top][All Lists]

[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 21:28:15 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Jamie Lokier wrote:
> 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?


        Use this after SetFilePointer to change the length of a file
        or stream.  If used on a sparse file or stream, increasing
        the length creates a sparse region.

-- Jamie

reply via email to

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