LWN.net Logo

Online defragmentation for ext4

Online defragmentation for ext4

Posted Feb 5, 2009 11:13 UTC (Thu) by mp (subscriber, #5615)
Parent article: Online defragmentation for ext4

If I understand correctly, there is also one other reason, not mentioned clearly in the article, why the defragmentation daemon needs some support from the kernel space.
The "put the newly defragmented version in the place of the old one" part must be done by updating the inode of the original or you would end up having to hunt and update all the directory entries pointing to the file.


(Log in to post comments)

Online defragmentation for ext4

Posted Feb 5, 2009 16:58 UTC (Thu) by nix (subscriber, #2304) [Link]

You'd also break everything that had the file open for writing if you left
it pointing at a deleted file.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds