This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Create new files as sparse on NT systems. (2nd try)
- From: Vaclav Haisman <V dot Haisman at sh dot cvut dot cz>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 17 Feb 2003 19:48:57 +0100 (CET)
- Subject: Re: Create new files as sparse on NT systems. (2nd try)
> Btw, now that I've said that it occurred to me to check
> GetVolumeInformation. There is apparently a FILE_SUPPORTS_SPARSE_FILES
> flag available. That's the ultimate way to deal with this rather than
> adding a wincap, I believe. Check (pc->fs.flags &
> FILE_SUPPORTS_SPARSE_FILES) in fhandler_disk_file::open and do the
> appropriate thing there.
>
> Sorry I didn't think of this before.
>
> cgf
I know about this flag and I have considered it when I started writing this
patch. It has one flaw. The volume of root of the path to the file doesn't have
to be the same volume as the file is physicaly stored on in case of reparse
points presence. Besides I don't see it as a problem if this call fails to set
the sparseness becase the file system doesn't support it.
Vaclav Haisman