>Thanks for clarifying! Seems I really need to check the apps with truss or 
>dtrace to see if they use that sequence. Allow me one more question: why 
>is fflush() required prior to fsync()?

When you use stdio, you need to make sure the data is in the
system buffers prior to call fsync.

fclose() will otherwise write the rest of the data which is not sync'ed.


(In S10 I fixed this for /etc/*_* driver files , they are generally
under 8 K and therefor never written to disk before fsync'ed
if not preceeded by fflush().

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

Reply via email to