The "rename trick" may not work here. Even if I renamed the file successfully, 
the data of the file may still reside in the memory instead of flushing back to 
the disk.  If I made any mistake here, please correct me. Thank you!

I'll try to find out whether ZFS binding the same file always to the same 
opening transaction group. If so, I guess my assumption here would be true. 
Seems like there is only one opening transaction group at anytime. Can anybody 
give me a definitive answer here?

For ZIL, it must be flushed back to disk in the order of fsync(). So that the 
last append of the file would happen as the last transaction log in ZIL for 
this file, I think. The assumption should still be true.

fsync or fdatasync may be too heavyweight for my case because it's a write 
intensive workload. I hope replicating the data to different machines to 
protect the data from power outage would be better.
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to