[lkml]   [2001]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Swap
>>>>> " " == Dan Maas <> writes:

> But NFS still allows atomic rename() right? Isn't it considered
> essential to write the new executable or library under a
> different name, and then atomically rename() over the old one?
> If you write() directly into the executable, you will get what
> you deserve...

Atomic rename works fine, on NFS, so if you just rename the old
library, you're quite safe. The bugs start to surface if you:

a) Reuse the the old library's inode by doing something along the
lines of open("",O_TRUNC|O_WRONLY).
b) erase the old library.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.043 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site