public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* atomically swap two files
@ 2010-11-25 20:11 Frank A. Kingswood
  2010-11-26 11:47 ` Pádraig Brady
  0 siblings, 1 reply; 3+ messages in thread
From: Frank A. Kingswood @ 2010-11-25 20:11 UTC (permalink / raw)
  To: linux-kernel

Hi!

Is it possible to swap two files in an atomic way, so that after the 
syscall either the two files have exchanged names or neither has been 
modified?

I suspect that btrfs could do it, but I'm wondering about ext3/4.

Frank


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

end of thread, other threads:[~2010-11-26 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25 20:11 atomically swap two files Frank A. Kingswood
2010-11-26 11:47 ` Pádraig Brady
2010-11-26 14:19   ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox