[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DBBE60E4-D215-459C-BBBF-59666069D462@mit.edu>
Date: Thu, 17 Nov 2011 16:27:39 -0500
From: Theodore Tso <tytso@....EDU>
To: Eric Sandeen <sandeen@...hat.com>
Cc: Theodore Tso <tytso@....edu>,
Ext4 Developers List <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH 1/2] debugfs: add filefrag command
On Nov 17, 2011, at 4:19 PM, Eric Sandeen wrote:
> On 11/17/11 3:12 PM, Theodore Ts'o wrote:
>> Add the ability to report on the fragmentation of a file on a file
>> system opened using debugfs.
>>
>> Signed-off-by: "Theodore Ts'o" <tytso@....edu>
>> ---
>> debugfs/Makefile.in | 8 +-
>> debugfs/debug_cmds.ct | 3 +
>> debugfs/debugfs.8.in | 21 +++
>> debugfs/debugfs.h | 1 +
>> debugfs/filefrag.c | 324 ++++++++++++++++++++++++++++++++++++++++++++++
>
> Is it possible to share any of ^^^ that code ^^^ with misc/filefrag.c somehow?
Well, the debugs code accesses the file system directly; I thought about creating glue code that created an interface similar to FIEMAP ioctl, but the glue code ends up being more than the code to do just do the fragmentation calculation.
-- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists