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

Christopher Faylor
Thu Feb 13 20:35:00 GMT 2003

On Mon, Feb 03, 2003 at 02:18:03PM +0100, Vaclav Haisman wrote:
>This is a little bit improved version of my previous post.
>By default creation of sparse files is disabled. It can be enabled by CYGWIN
>option sparse_files.
>Vaclav Haisman
>2003-02-03  Vaclav Haisman  <>
>	* fhandler.h (allow_sparse): Declare new extern variable.
>	* (METHOD_BUFFERED): New macro.
>	(allow_sparse): Define the new variable.
>	(fhandler_base::open): Try to set newly created or trucated files
>	as sparse on NT systems.
>	* (parse_thing): Add new CYGWIN option.

This is YA case where I don't think that a CYGWIN environment variable option is

UNIX has a method for producing sparse files.  If this is desired functionality,
Cygwin should mimic that not invent a new way of doing things.


More information about the Cygwin-patches mailing list