From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [RFC] Ext3 online defrag Date: Tue, 24 Oct 2006 00:13:06 -0400 Message-ID: <20061024041306.GA12506@havoc.gtf.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 havoc.gtf.org ([69.61.125.42]:10424 "EHLO havoc.gtf.org") by vger.kernel.org with ESMTP id S965081AbWJXENI (ORCPT ); Tue, 24 Oct 2006 00:13:08 -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. Basically you call ioctl on a file, give it list of blocks > and it relocates the file into given blocks (provided they are still > free). The idea is to use it as a kernel part of ext3 online > defragmenter (or generally disk access optimizer). Now I don't have the > user space part that finds larger runs of free blocks and so on so that > it can really be used as a defragmenter. I just send this as a kind of > proof-of-concept to hear some comments. Attached is also a simple > program that demonstrates the use of the ioctl. Note that the ext2meta interface was developed precisely for that purpose. I would suggest using that, it's far better than an ioctl-based solution. Jeff