From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: truncate head of file? Date: Tue, 19 Aug 2014 23:26:24 -0700 Message-ID: <53F43F90.6010409@infradead.org> References: <53F435EC.4030601@symas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: Howard Chu , linux-fsdevel Return-path: Received: from casper.infradead.org ([85.118.1.10]:43536 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbaHTG02 (ORCPT ); Wed, 20 Aug 2014 02:26:28 -0400 In-Reply-To: <53F435EC.4030601@symas.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 08/19/14 22:45, Howard Chu wrote: > Was thinking it would be very handy to have a truncate() variant that deletes pages from the head of a file. This could be leveraged to make logfiles easier to maintain, as an example. Anyone else interested, think this would be nice to have? > > (Note - not the same as just punching holes in the beginning of the file - we want the beginning of the file to advance as well, past the deleted pages.) What is a "page" of a file? Thanks, -- ~Randy