Re: [PATCH 1/2] debugfs: add filefrag command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
>> ---
>> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux