Re: [PATCH] nfs_unlink() race (was: nfs_refresh_inode: inode

Alan Cox (alan@lxorguk.ukuu.org.uk)
11 Jun 2003 16:51:04 +0100


On Mer, 2003-06-11 at 16:08, Linus Torvalds wrote:
> > cd foo
> > mv ../file .
> > more file
> >
> > ESTALE.
>
> Yes, VFAT ends up encoding the parent directory in the FH, so renaming
> will invalidate the old file handle, and if you cache inodes (and thus
> filehandles) over a directory move, badness happens.
>
> Arguably it's a NFS client problem

No no - this happens on LOCAL disk. No NFS needed at all.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/