Create new files as sparse on NT systems. (2nd try)
Corinna Vinschen
cygwin-patches@cygwin.com
Wed Feb 19 19:41:00 GMT 2003
On Wed, Feb 19, 2003 at 12:57:38PM -0500, Christopher Faylor wrote:
> On Wed, Feb 19, 2003 at 10:39:17AM -0500, Joe Buehler wrote:
> >One thing to investigate would be what happens when Windows trys to mmap()
> >a sparse file. It doesn't bother a UNIX box, but Windows? Perhaps that
> >is what BitTorrent is presently doing?
>
> Hmm. Good point. Does some brave soul want to apply the patch and do some
> experimenting?
I'm going to test that *shiver*.
Just a hint: Since we're calling GetVolumeInformation in path.cc
anyway, it could make sense to remember the sparseness of the FS
at that point. So fhandler_disk_file::open() could use that result
when thinking about calling that new DeviceIoControl() call.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-patches
mailing list