Re: grp.cc

2003-02-18 Thread Corinna Vinschen
On Mon, Feb 17, 2003 at 02:35:06PM -0500, Pierre A. Humblet wrote: > Corinna, > > I believe this will take care of Re: uh oh [[EMAIL PROTECTED]: > Re: bash broken with cygwin 1.3.20? - now working with 1.3.20] Applied. Thanks, Corinna -- Corinna Vinschen Please, send mails re

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

2003-02-18 Thread Christopher Faylor
On Mon, Feb 17, 2003 at 08:23:21PM +0100, Vaclav Haisman wrote: >> This is consistent with the way the rest of cygwin works, however. The >> same argument could be applied to testing for ntsec. If this was an issue >> then we should be changing the fs information to reflect reparse points. > >I a

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

2003-02-18 Thread Vaclav Haisman
I've moved the whole thing into fhandler_disk_file::open and made it conditional on FILE_SUPPORTS_SPARSE_FILES. I had to add new method to path_conv to get access to flags member of fs_info. This patch includes wincap changes but they can be left out as the rest of the patch doesn't rely on them a

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

2003-02-18 Thread Max Bowsher
Two things - First: Please, please don't make this the default! Once a file is sparsified, it cannot be unsparsified except by copying the contents to a new file! This seems like an optimization for a corner case is trying to cause a global change. And: FSCTL_SET_SPARSE, used in the patch, is *

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

2003-02-18 Thread Christopher Faylor
On Tue, Feb 18, 2003 at 10:08:56PM -, Max Bowsher wrote: >Two things - First: > >Please, please don't make this the default! Once a file is sparsified, it >cannot be unsparsified except by copying the contents to a new file! This >seems like an optimization for a corner case is trying to cause

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

2003-02-18 Thread Max Bowsher
Christopher Faylor wrote: > On Tue, Feb 18, 2003 at 10:08:56PM -, Max Bowsher wrote: >> Two things - First: >> >> Please, please don't make this the default! Once a file is >> sparsified, it cannot be unsparsified except by copying the contents >> to a new file! This seems like an optimization

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

2003-02-18 Thread Christopher Faylor
On Tue, Feb 18, 2003 at 10:21:26PM -, Max Bowsher wrote: >Christopher Faylor wrote: >> On Tue, Feb 18, 2003 at 10:08:56PM -, Max Bowsher wrote: >>> Two things - First: >>> >>> Please, please don't make this the default! Once a file is >>> sparsified, it cannot be unsparsified except by copy

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

2003-02-18 Thread Gary R Van Sickle
[snip] > >What kind of program would actually benefit from sparse > files? And shouldn't > >it be the responsibility of that program to request them? > > IIRC, linux creates sparse files automatically when you do an lseek to > a position beyond EOF. I believe that Windows is similar. > No, Windo

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

2003-02-18 Thread Vaclav Haisman
On Tue, 18 Feb 2003, Gary R Van Sickle wrote: > "Note: It is up to the application to maintain sparseness by writing zeros > with FSCTL_SET_ZERO_DATA", sez the Platform docs. In this respect Windows are ahead of any recent Unix system. I wasn't able find any Unix/Posix syscall that would allow t

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

2003-02-18 Thread Max Bowsher
Vaclav Haisman wrote: > On Tue, 18 Feb 2003, Gary R Van Sickle wrote: > >> "Note: It is up to the application to maintain sparseness by writing >> zeros with FSCTL_SET_ZERO_DATA", sez the Platform docs. > > In this respect Windows are ahead of any recent Unix system. I wasn't > able find any Unix

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

2003-02-18 Thread Vaclav Haisman
> Could you do some tests, so we have more than conjecture to go on? > > What programs actually *benefit* from sparseness? My primary motivation to do this is that I use P2P sharing program called BitTorrent. This program is written in Python and I run it in Cygwin. This program first creates who

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

2003-02-18 Thread Max Bowsher
Vaclav Haisman wrote: >> Could you do some tests, so we have more than conjecture to go on? >> >> What programs actually *benefit* from sparseness? > > My primary motivation to do this is that I use P2P sharing program > called BitTorrent. This program is written in Python and I run it in > Cygwin.

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

2003-02-18 Thread Vaclav Haisman
On Wed, 19 Feb 2003, Max Bowsher wrote: > Well, why not have BitTorrent set the file as sparse? Because it runs as Cygwin app which is Unix-like environment. There is no way to set files sparse in Unix because all files are sparse if the file systems supports it. Vaclav Haisman

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

2003-02-18 Thread Christopher Faylor
On Wed, Feb 19, 2003 at 02:19:50AM +0100, Vaclav Haisman wrote: >On Wed, 19 Feb 2003, Max Bowsher wrote: >>Well, why not have BitTorrent set the file as sparse? > >Because it runs as Cygwin app which is Unix-like environment. There is >no way to set files sparse in Unix because all files are spars