delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/19/11:39:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 11:53:31 -0400
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: SPARSE files considered harmful - please revert
Message-ID: <20030519155331.GA797027@Worldnet>
References: <16072 DOT 6666 DOT 10124 DOT 338022 AT gargle DOT gargle DOT HOWL> <00f301c31e12$c29efdb0$6400a8c0 AT FoxtrotTech0001> <00be01c31e15$944d0d50$78d96f83 AT pomello>
Mime-Version: 1.0
In-Reply-To: <00be01c31e15$944d0d50$78d96f83@pomello>
User-Agent: Mutt/1.4i

On Mon, May 19, 2003 at 03:47:32PM +0100, Max Bowsher wrote:
> Bill C. Riemers wrote:
> > Only executable files should be sparse files...  Under Linux, the
> executable
> > bit is checked by cp.  (Or at least this was true several years ago, when
> I
> > last looked at the code.)  Only if the file is marked as executable is it
> > possibly made sparse.
> 
> I haven't looked in the code, but there is absolutely no mention of this in
> the man page.

... and the non-executable file /var/log/lastlog can cause big trouble if it
isn't sparse.
 
> > Granted sometimes you do have a data file which can be made sparse.
> > However, unless you are familiar with the code used to read the file, this
> > is very dangerous.  So this should be decided on a case by case basis.
> 
> Um? By my understanding, making a file sparse can never be dangerous. It can
> cause sub-optimal performance, but code reading the file doesn't have to be
> aware of anything special - the OS takes care of it.
>
Agree. Something along the lines of Martin Buchholz's suggestion makes sense:
make the file sparse when writing after a seek past the end of file. 
There is already support to detect that condition, to handle the win95 lseek
bug.

Pierre

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019