This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Create new files as sparse on NT systems. (2nd try)


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 at cygwin dot com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]