A Question on inode - ext3FS

Theodore Tso tytso at mit.edu
Wed Nov 26 07:59:59 UTC 2008


On Wed, Nov 26, 2008 at 08:38:46AM +0100, Jordi Prats wrote:
> > THe main advantage of the second method is that it's atomic. Either the file
> > is replaced, or it isn't. Thus other users/programs which accesss the file
> > never see intermediate results.  (also the case if the program dies, or the
> > system is reset).
> 
> Just curious...How is done that?There's a system call to do this replacement?
> 

Yes.  It's called rename().  Run "man 2 rename" to see its man page.

      	   	  	     	      		- Ted




More information about the Ext3-users mailing list