LWN.net Logo

Write barriers

Write barriers

Posted Mar 17, 2009 1:43 UTC (Tue) by xoddam (subscriber, #2322)
In reply to: Where the the correctness go? by Pc5Y9sbv
Parent article: Ts'o: Delayed allocation and the zero-length file problem

In the context of a journalling filesystem the application-level guarantee doesn't really need to be implemented with an explicit write barrier at the disk level. Write barriers may or may not be used to maintain the journal; journals can work (perhaps somewhat less effectively) without them.

Because the journal is already able to provide the guarantee of filesystem metadata consistency, it can be used in the same way to ensure an effective ordering between write() and rename().


(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