From mboxrd@z Thu Jan 1 00:00:00 1970 From: Howard Chu Subject: truncate head of file? Date: Tue, 19 Aug 2014 22:45:16 -0700 Message-ID: <53F435EC.4030601@symas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: linux-fsdevel Return-path: Received: from zill.ext.symas.net ([69.43.206.106]:54208 "EHLO zill.ext.symas.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbaHTGRI (ORCPT ); Wed, 20 Aug 2014 02:17:08 -0400 Received: from cust233-73.nwewn.com ([78.155.233.73] helo=[192.168.1.103]) by zill.ext.symas.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XJyhz-0007CN-2j for linux-fsdevel@vger.kernel.org; Tue, 19 Aug 2014 22:45:19 -0700 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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.) -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/