ESTALE after cwd deleted by same NFS client

Colin Percival cperciva at tarsnap.com
Mon Dec 12 06:15:16 UTC 2016


On 12/11/16 21:42, Benjamin Kaduk wrote:
> On Sun, Dec 11, 2016 at 11:06:42PM +0000, Colin Percival wrote:
>> If I run the following with /nfs/ being an NFS mount:
>> # mkdir /nfs/foo
>> # touch /nfs/foo/bar
>> # cd /nfs/foo
>> # rm -r /nfs/foo
>> # rm bar
>>
>> Then the final 'rm bar' fails with 'Stale NFS file handle'.
> 
> Amusingly, this just came up recently:
> 
> https://www.ietf.org/mail-archive/web/nfsv4/current/msg15115.html (et seq)
> 
> But I guess you did not specify which version of the NFS protocol you were
> using...

I'm using NFSv4.1, but this isn't quite the same... that link refers to having
one NFS client remove a file out from underneath a different client, while I'm
talking about having an NFS client remove a file from underneath *itself*.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid


More information about the freebsd-fs mailing list