LWN.net Logo

Atomicity vs durability

Atomicity vs durability

Posted Mar 15, 2009 13:14 UTC (Sun) by bojan (subscriber, #14302)
In reply to: Atomicity vs durability by man_ls
Parent article: Ts'o: Delayed allocation and the zero-length file problem

> The rename cannot be atomic if the name points to e.g. an empty file

As long as processes running on the system can see a consistent picture (and they can), according to POSIX it is.

> not only the filename must be valid but the contents of the file as well

From the point of view of any process running on the system, it is.


(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