On Sat, 5 Dec 2009, Damon Atkins wrote:

If power failure happens you will lose anything in cache. So you could lose the entire file on power failure if the system is not busy (ie ZFS does delay writes, unless you do a fsync before closing the file). I would still like to see a file system option "sync on close" or even "wait for txg on close"

A memory-mapped file may still be updated even after its file descriptor has been closed. It may be updated as long as any of its pages remain mapped. File updates due to updated pages are usually lazy unless msync() is used to flush the pages to backing store. How do you propose that this would be handled?

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to