On Tue, Feb 18, 2003 at 10:51:31PM +0100, Vaclav Haisman wrote:
2003-02-17 Vaclav Haisman [EMAIL PROTECTED]
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
2003-02-18 Vaclav Haisman [EMAIL PROTECTED]
* wincap.h (wincaps::supports_sparse_files): New flag.
On Wed, Feb 19, 2003 at 10:06:37PM +0100, Corinna Vinschen wrote:
Since st_blocks contains the number of blocks allocated, according to
the Linux man page and SUSv3, shouldn't we change st_blocks to reflect
the value of GetCompressedFileSize() now?
I've checked in a patch so st_blocks is now
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 [EMAIL PROTECTED]
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
2003-02-18 Vaclav Haisman [EMAIL PROTECTED]
*
On Thu, Feb 20, 2003 at 10:25:00AM -0500, Christopher Faylor wrote:
On Thu, Feb 20, 2003 at 11:16:06AM +0100, Corinna Vinschen wrote:
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
On Thu, Feb 20, 2003 at 04:52:22PM +0100, Corinna Vinschen wrote:
However, since some people were objecting so doggedly, I was thinking
that committing this patch would give a hint that a testcase(tm) is more
useful than just musing. Everybody who wants this patch removed can
accomplish this by
On Wed, Feb 19, 2003 at 10:39:17AM -0500, Joe Buehler wrote:
Christopher Faylor wrote:
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.
...which is, coincidentally enough, why
On Wed, Feb 19, 2003 at 12:57:38PM -0500, Christopher Faylor wrote:
On Wed, Feb 19, 2003 at 10:39:17AM -0500, Joe Buehler wrote:
One thing to investigate would be what happens when Windows trys to mmap()
a sparse file. It doesn't bother a UNIX box, but Windows? Perhaps that
is what
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
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
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
[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
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
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
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
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
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
UNIX has a method for producing sparse files. If this is desired functionality,
Cygwin should mimic that not invent a new way of doing things.
cgf
Hi,
I have prepared another patch that implements parse files for Cygwin. It is
smaller and, I think, even better than the previous. No new
Is it wise to set *all* new files to sparse? Surely if this was actually
advantageous, Windows would do it anyway? From MSDN: Note It is up to the
application to maintain sparseness by writing zeros with
FSCTL_SET_ZERO_DATA. I.e., this will gain nothing unless the application
knows about
Vaclav Haisman wrote:
Is it wise to set *all* new files to sparse? Surely if this was
actually advantageous, Windows would do it anyway? From MSDN: Note
It is up to the application to maintain sparseness by writing zeros
with FSCTL_SET_ZERO_DATA. I.e., this will gain nothing unless the
On Mon, 3 Feb 2003, Vaclav Haisman wrote:
This is a little bit improved version of my previous post.
By default creation of sparse files is disabled. It can be enabled by CYGWIN
option sparse_files.
Vaclav Haisman
2003-02-03 Vaclav Haisman [EMAIL PROTECTED]
[snip]
* environ.cc
I haven't noticed until you pointed it out. This can be easily corrected.
Vaclav Haisman
I don't know if it matters, but the rest of the entries in the parse_thing
table are alphabetically ordered...
Igor
--
21 matches
Mail list logo