From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wedgwood Subject: Re: [RFC] Ext3 online defrag Date: Mon, 23 Oct 2006 21:21:51 -0700 Message-ID: <20061024042151.GA12489@tuatara.stupidest.org> References: <20061023122710.GA12034@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from smtp114.sbc.mail.mud.yahoo.com ([68.142.198.213]:64358 "HELO smtp114.sbc.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S965087AbWJXEVy (ORCPT ); Tue, 24 Oct 2006 00:21:54 -0400 To: Jan Kara Content-Disposition: inline In-Reply-To: <20061023122710.GA12034@atrey.karlin.mff.cuni.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Oct 23, 2006 at 02:27:10PM +0200, Jan Kara wrote: > I've written a simple patch implementing ext3 ioctl for file > relocation. Have you looked at XFS's ioctl XFS_IOC_SWAPEXT? That seems like a reasonably simple model to start with. Breifly, the idea there is that you create a new file, copy the file you wish to reorganize and then switch the extents. What the userspace does now it pretty simplistic but with some effort additional kernel interfaces could be added to make things a little more optimal globally where possible (a lot of the requirements are probably fs-specific though).