Re: A Question on inode - ext3FS

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

 



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

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux