On Nov 30, 2009, at 8:30 PM, Chris Frost wrote:

Will a write(2) to a ZFS file be made durable atomically?

Yes or no, as specified by the options set at open(2).

Note: it is worthwhile to know if your hardware honors cache flush
requests, otherwise all bets are off.

Under the hood in ZFS, writes are committed using either shadow paging or
logging, as I understand it. So I believe that I mean to ask whether a
write(2), pushed to ZPL, and pushed on down the stack, can be split into multiple transactions? Or, instead, is it guaranteed to be committed in a
single transaction, and so committed atomically?

ZPL is the ZFS POSIX Layer.  I believe you meant to say the ZFS intent
log (ZIL) instead. There is a lot of material online about the ZIL and how
it works. Neil's blog is often cited:
http://blogs.sun.com/perrin/entry/the_lumberjack

 -- richard

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to