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

Christopher Faylor cgf@redhat.com
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  <V.Haisman@sh.cvut.cz>
>	* fhandler.h (allow_sparse): Declare new extern variable.
>	* fhandler.cc (METHOD_BUFFERED): New macro.
>	(FSCTL_SET_SPARSE): Ditto.
>	(allow_sparse): Define the new variable.
>	(fhandler_base::open): Try to set newly created or trucated files
>	as sparse on NT systems.
>	* environ.cc (parse_thing): Add new CYGWIN option.

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

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.

cgf



More information about the Cygwin-patches mailing list