[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: A Question on inode - ext3FS
- From: Theodore Tso <tytso mit edu>
- To: Jordi Prats <jordi prats gmail com>
- Cc: Stephen Samuel <darkonc gmail com>, lakshmi pathi <lakshmipathi g gmail com>, ext3-users redhat com
- Subject: Re: A Question on inode - ext3FS
- Date: Wed, 26 Nov 2008 02:59:59 -0500
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]