> 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. > > Have you looked at XFS's ioctl XFS_IOC_SWAPEXT? That seems like a > reasonably simple model to start with. No, I did not. Thanks for the pointer. > Breifly, the idea there is that you create a new file, copy the file > you wish to reorganize and then switch the extents. That is basically what I do... > What the userspace does now it pretty simplistic but with some effort > additional kernel interfaces could be added to make things a little > more optimal globally where possible (a lot of the requirements are > probably fs-specific though). I guess defragmentation is so fs specific that a generic interface for it does not make too much sence. Especially if we care about performance... Honza -- Jan Kara <jack@xxxxxxx> SuSE CR Labs - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html