LWN.net Logo

Where the the correctness go?

Where the the correctness go?

Posted Mar 14, 2009 21:25 UTC (Sat) by bojan (subscriber, #14302)
In reply to: Where the the correctness go? by nix
Parent article: Ts'o: Delayed allocation and the zero-length file problem

> There's a window there where it can leave you with baz~ and baz.new, but no baz, on crash.

Yep, very true.

But, no zero length file, which was the original problem. Essentially, you will get at least _something_.

> Why doesn't someone add real DB-style transactions to at least one filesystem, again? They'd be really useful...

Who knows, maybe we'll get proper API for that behaviour out of this discussion.


(Log in to post comments)

Where the the correctness go?

Posted Mar 14, 2009 21:39 UTC (Sat) by foom (subscriber, #14868) [Link]

> Essentially, you will get at least _something_.

There's no guarantee of that. A filesystem could simple erase itself upon unexpected
poweroff/crash. *Anything* better than that is an implementation detail.

Where the the correctness go?

Posted Mar 15, 2009 1:58 UTC (Sun) by bojan (subscriber, #14302) [Link]

I knew someone's going have a silly comment here. I was expecting, however, that it's going to be more technical, along the lines "see, you cannot rely on it after all". Just for the record, the first rename emacs does is optional (in order to get the backup file) and would not be done for configuration files, hence full atomicity and durability.

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