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 Thu, Feb 20, 2003 at 11:16:06AM +0100, Corinna Vinschen wrote:
>On Tue, Feb 18, 2003 at 10:51:31PM +0100, Vaclav Haisman wrote:
>> 2003-02-17 Vaclav Haisman <V dot Haisman at sh dot cvut dot cz>
>> 
>> 	* include/winioctl.h (FSCTL_SET_SPARSE): Define.
>> 
>> 2003-02-18  Vaclav Haisman  <V dot Haisman at sh dot cvut dot 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.

Um.  I was still hoping for benchmarks indicating that there was no performance
hit from this patch.  Also, this patch introduces a change to wincap which is
never used.  We don't need to change wincap.

cgf

cgf


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