Re: nfs rename is not atomic

2014-04-02 Thread Ted Unangst
On Sat, Mar 29, 2014 at 00:06, Philip Guenther wrote: > As for why our NFS client doesn't do vnode locking, I'll defer to > tedu, beck, and theo, as I wasn't around for that... Here be killer robot dragon assassins. Let's start with nfs_node.c:nfs_nget(). It returns an nfsnode which is the flip

Re: nfs rename is not atomic

2014-03-29 Thread Alexander Hall
On 03/29/14 08:06, Philip Guenther wrote: On Wed, Mar 26, 2014 at 7:50 AM, Mike Belopuhov wrote: After a bunch of failures (ld.so can't find libc.so for the install(1)) with parallel make build (-j 4) on an NFS setup I came up with this simple testcase that shows that rename(2) on NFS is not at

Re: nfs rename is not atomic

2014-03-29 Thread Philip Guenther
On Wed, Mar 26, 2014 at 7:50 AM, Mike Belopuhov wrote: > After a bunch of failures (ld.so can't find libc.so for the install(1)) > with parallel make build (-j 4) on an NFS setup I came up with this > simple testcase that shows that rename(2) on NFS is not atomic by > trying to open(2) the file th

nfs rename is not atomic

2014-03-26 Thread Mike Belopuhov
Hi, After a bunch of failures (ld.so can't find libc.so for the install(1)) with parallel make build (-j 4) on an NFS setup I came up with this simple testcase that shows that rename(2) on NFS is not atomic by trying to open(2) the file that is being renamed in a tight loop. I can reproduce this o