All of lore.kernel.org
 help / color / mirror / Atom feed
* integrity question
@ 2002-05-25 19:43 Toby Dickenson
  2002-05-26  5:25 ` Jean-Francois Landry
  0 siblings, 1 reply; 5+ messages in thread
From: Toby Dickenson @ 2002-05-25 19:43 UTC (permalink / raw)
  To: reiserfs-list

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?)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-28 11:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-25 19:43 integrity question Toby Dickenson
2002-05-26  5:25 ` Jean-Francois Landry
2002-05-27  9:35   ` Toby Dickenson
2002-05-28  2:26     ` Jean-Francois Landry
2002-05-28 11:05       ` Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.