From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: File perforation. Date: Wed, 8 Jan 2003 22:55:51 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030108225551.G26554@parcelfarce.linux.theplanet.co.uk> References: <21551.1042063560@passion.cambridge.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: To: David Woodhouse Content-Disposition: inline In-Reply-To: <21551.1042063560@passion.cambridge.redhat.com>; from dwmw2@infradead.org on Wed, Jan 08, 2003 at 10:06:00PM +0000 List-Id: linux-fsdevel.vger.kernel.org On Wed, Jan 08, 2003 at 10:06:00PM +0000, David Woodhouse wrote: > I've been resisting these requests because I really don't want to do it > with an ioctl on the file. Only if we can have a generic sys_perforate() > would I really want to do it. SGI have an fcntl to do this: http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/p_man/cat2/standard/fcntl.z F_FREESP However, I think this is probably the ugliest method available to perform this function. -- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk