From: =?ISO-8859-15?Q?Luk=E1=A8_Czerner?= Subject: Re: truncate head of file? Date: Wed, 20 Aug 2014 08:39:24 +0200 (CEST) Message-ID: References: <53F435EC.4030601@symas.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linux-fsdevel To: Howard Chu Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64541 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbaHTGjb (ORCPT ); Wed, 20 Aug 2014 02:39:31 -0400 In-Reply-To: <53F435EC.4030601@symas.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, 19 Aug 2014, Howard Chu wrote: > Date: Tue, 19 Aug 2014 22:45:16 -0700 > From: Howard Chu > To: linux-fsdevel > Subject: truncate head of file? > > 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.) I am not really sure I understand the behaviour you'd like to see. Can you please explain the behaviour including more concrete use case ? Thanks! -Lukas