From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Takashi Sato" Subject: Re: [RFC][PATCH 3/3] Online defrag command Date: Fri, 9 Feb 2007 17:08:50 +0900 Message-ID: <071601c74c21$8b75bf90$4168010a@bsd.tnes.nec.co.jp> References: <20070208180235sho@rifu.tnes.nec.co.jp> <20070208135620.GF4487@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Cc: , To: "Jens Axboe" Return-path: Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:56102 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946192AbXBIII7 (ORCPT ); Fri, 9 Feb 2007 03:08:59 -0500 Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.162]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id l1988w6b029611 for ; Fri, 9 Feb 2007 17:08:58 +0900 (JST) Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id l1988wr17626 for linux-fsdevel@vger.kernel.org; Fri, 9 Feb 2007 17:08:58 +0900 (JST) Received: from secsv3.tnes.nec.co.jp (tnesvc2.tnes.nec.co.jp [10.1.101.15]) by mailsv.nec.co.jp (8.11.7/3.7W-MAILSV-NEC) with ESMTP id l1988vO16401 for ; Fri, 9 Feb 2007 17:08:57 +0900 (JST) Received: from tnesvc2.tnes.nec.co.jp ([10.1.101.15]) by secsv3.tnes.nec.co.jp (ExpressMail 5.10) with SMTP id 20070209.170857.21901800 for ; Fri, 9 Feb 2007 17:08:57 +0900 Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi, > On Thu, Feb 08 2007, Takashi Sato wrote: >> The defrag command. Usage is as follows: >> o Put the multiple files closer together. >> # e4defrag -r directory-name >> o Defrag for a single file. >> # e4defrag file-name >> o Defrag for all files on ext4. >> # e4defrag device-name > > Would it be possible to provide support for putting multiple files close > together? Ala > > # e4defrag file1 file2 file3 ... fileN e4defrag cannot do it in my current implementation. I will consider its implementation on my later version. Alternatively, you can do it if you link those files with a directory. # ln file1 file2 file3 ... fileN directory-name # e4defrag -r directory-name > I'm thinking boot speedup, gather the list of read files and put them > close on disk. I think so. It's my final goal. Cheers, Takashi