On May 18, 2007 13:19 -0700, Eric wrote: > A defragmentation routine makes files contiguous on disk. A better > defragmentation routine intelligently locates data structures on the > disk so that files and directories are placed to minimize latency and > maximize throughput now, AND so that this will continue to happen in the > future. Typically this means not only making files contiguous, but also > consolidating free space at the end of the volume so that the block It is not necessarily best to put free space at the END of the volume (that is very FAT-centric) but it does make sense to consolidate free space within each block group. > But on an extent file there is a logical, high-performance mapping > between the on-disk structures that keep track of which blocks belong to > which files and the data returned by the as-yet-to-be-implemented FIEMAP > ioctl, which could make defragging faster and more fun. > > http://www.mail-archive.com/linux-ext4@xxxxxxxxxxxxxxx/msg01434.html Yeah, I wish I had time to finish working on this. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc. - 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