Create new files as sparse on NT systems. (2nd try)
Joe Buehler
jbuehler@hekimian.com
Wed Feb 19 15:39:00 GMT 2003
Christopher Faylor wrote:
>>Because it runs as Cygwin app which is Unix-like environment. There is
>>no way to set files sparse in Unix because all files are sparse if the
>>file systems supports it.
>
> ...which is, coincidentally enough, why I was interested in the patch.
It seems like a win to me -- UNIX files are always sparse by default: if you
seek to a location and write, blocks are filled in only at the location of
the write.
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?
--
Joe Buehler
More information about the Cygwin-patches
mailing list