[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: A Question on inode - ext3FS



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]