On 5-Dec-09, at 8:32 AM, nxyyt wrote:

Thank you very much for your quick response.

My question is I want to figure out whether there is data loss after power outage. I have replicas on other machines so I can recovery from the data loss. But I need a way to know whether there is data loss without comparing the different data replicas.

I suppose if I append a footer to the end of file before I close it, I can detect the data loss by validating the footer. Is it a work aroud for me ? Or is there a better alternative? In my scenario, the file is append-only, no in-place overwrite.

You seem to be looking for fsync() and/or fdatasync(); or, take advantage of existing systems with durable commits (e.g. [R]DBMS).

--Toby

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

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

Reply via email to