Re: [RFC] Ext3 online defrag

Jeff Garzik
2006-10-25T18:33:06Z

On Wed, Oct 25, 2006 at 08:25:30PM +0200, Jan Kara wrote:
> I see. So you mean that in our ext3meta filesystem we'd have a file
> named "add_this_extent_to_inode" and a file "reloc_inode_interval" and
> they'd be fed essentially the same info as the current ioctl interface and
> do the same thing as we currently do. Hmm, I don't find it that nice any
> more but yes, this would work.

It depends on the operation. ext2meta[1] works fine for online
defrag, just exporting metadata objects and providing read(1)
and write(2) operations on them. Adding 'trigger' files (like your
add_this_extent_to_inode) may make sense for some operations, indeed,
but we need to see the whole picture before really understanding
whether that interface is optimal.

Jeff

[1] http://linux.yyz.us/misc/ext2meta.c