This is the mail archive of the cygwin 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: Fwd: Re: cp command - problem with sparse


On Tue, Feb 01, 2005 at 06:48:56AM -0700, Eric Blake wrote:
>This question came up on the coreutils list:
>
>Does cygwin provide any support for sparse files on NTFS volumes that
>support it?  lseek() could be patched to use FSCTL_SET_ZERO_DATA when a
>seek jumps past the end of a file open for writing, but there is still the
>issue of when that file is given the FSCTL_SET_SPARSE attribute.

Yes.

  % fgrep FSCTL_SET_SPARSE *.cc
  fhandler.cc:          BOOL r = DeviceIoControl (h, FSCTL_SET_SPARSE, NULL, 0, NULL,
  fhandler.cc:          syscall_printf ("%d = DeviceIoControl(%p, FSCTL_SET_SPARSE, "

There are limitations on when a file is considered sparse, however.  The archives
probably have more details.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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