Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 19 May 2003 22:41:51 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: SPARSE files considered harmful - please revert Message-ID: <20030520024151.GA1812@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <16072 DOT 6666 DOT 10124 DOT 338022 AT gargle DOT gargle DOT HOWL> <00f301c31e12$c29efdb0$6400a8c0 AT FoxtrotTech0001> <00be01c31e15$944d0d50$78d96f83 AT pomello> <005601c31e26$77671260$6400a8c0 AT FoxtrotTech0001> <20030519175913 DOT GA24066 AT redhat DOT com> <008001c31e5e$39c0c680$6400a8c0 AT FoxtrotTech0001> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <008001c31e5e$39c0c680$6400a8c0@FoxtrotTech0001> User-Agent: Mutt/1.4.1i On Mon, May 19, 2003 at 07:27:06PM -0400, Bill C. Riemers wrote: >> I think you need to read the documentation a little more closely. Either that >>or provide references to the parts of the documentation that says that >>normal RW operations would fragment a sparse file. > >It is rather obvious. Let say you have three blocks worth of data, and >is written into a file with a physical block followed by a sparse block >followed by a physical block. No disk space is reserved for the sparse >block. Why should it be, as it would defeat the whole purpose of using >sparse files? So physically on disk you have two consecutive physical >blocks. What then happens if you open the file in RW mode, seek to the >sparse block and write some data? 1) You are assuming behavior that isn't documented. I can imagine that the first block could occupy, say 16 blocks and depending on the size of the hole, there could be no fragmentation. 2) Normal read/write behavior would not result in a file that has a sparse block. I think it is a rare program which writes beyond EOF. So this would normally be a non-issue. 3) What no one seems to be mentioning is that we are trying to emulate UNIX behavior here. If the above is an issue for Windows then it could also be an issue for UNIX. 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/