I am developing a storage layer for the ZODB object database, which is 
designed to play to reiserfs strengths. 

http://sourceforge.net/projects/dirstorage

I have a question about how much fsyncing is necessary to avoid losing files 
on power loss, when moving them between directories.

Consider this sequence

1. write to A/B/somefileX and fsync it
2. mkdir A/C
3. rename A/B/somefile to A/C/somefile
4. rmdir A/B
5. power loss

I would like to guarantee that, after journal replay, 'somefile' is in either 
of those two directories (or both). Am I correct to think that I dont need 
any other syncs in there?

(A second question; is there any documentation that I could have used to 
answer the first question myself?)

Reply via email to