LWN.net Logo

Delayed allocation safety

Delayed allocation safety

Posted Feb 11, 2011 23:43 UTC (Fri) by zlynx (subscriber, #2285)
In reply to: Delayed allocation safety by jrn
Parent article: Removing ext2 and/or ext3

What I gathered from the bug report is that the allocation will take place but the data is still in limbo when the rename is written to disk.

So you end up with:
1. Space allocated for the new file.
2. Directory written to disk with new filename.
---- CRASH HAPPENS HERE
3. New file contents written to disk.

The sequence of events above is hardly better than it was before the fix.
Did I miss something in the sequence?

Just don't allow step 2 to happen before step 3 and everyone would have been happy.


(Log in to post comments)

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