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 a

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 for a

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 copying the

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, Windows does

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 this

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/Posix

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. This

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 sparse if