lkml.org 
[lkml]   [2010]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectatomically swap two files
Date
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



\
 
 \ /
  Last update: 2010-11-25 21:15    [W:0.043 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site