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

Corinna Vinschen cygwin-patches@cygwin.com
Thu Feb 20 10:16:00 GMT 2003


On Tue, Feb 18, 2003 at 10:51:31PM +0100, Vaclav Haisman wrote:
> 2003-02-17 Vaclav Haisman <V.Haisman@sh.cvut.cz>
> 
> 	* include/winioctl.h (FSCTL_SET_SPARSE): Define.
> 
> 2003-02-18  Vaclav Haisman  <V.Haisman@sh.cvut.cz>
> 
> 	* wincap.h (wincaps::supports_sparse_files): New flag.
> 	(wincapc::supports_sparse_files): New method.
> 	* wincap.cc (wincap_unknown): Define value for the new flag.
> 	(wincap_95): Ditto.
> 	(wincap_95osr2): Ditto.
> 	(wincap_98): Ditto.
> 	(wincap_98se): Ditto.
> 	(wincap_me): Ditto.
> 	(wincap_nt3): Ditto.
> 	(wincap_nt4): Ditto.
> 	(wincap_nt4sp4): Ditto.
> 	(wincap_2000): Ditto.
> 	(wincap_xp): Ditto.
> 	* path.h (path_conv::fs_flags): New method.
> 	* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
> 	(fhandler_disk_file::open): Set newly created and truncated files as
> 	sparse on platforms that support it.

I've applied that patch now.  If anybody still has problems with it,
please feel free to post a *testcase* which shows the problem.

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