From: J. Bruce Fields Date: Thu, 14 Jul 2011 20:50:36 +0000 (+0000) Subject: xfs: failure mapping nfs fh to inode should return ESTALE X-Git-Tag: v3.1-rc1~322^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad1a2c878ca70829874b4fcc83223cccb4e26dab;p=pandora-kernel.git xfs: failure mapping nfs fh to inode should return ESTALE On xfs exports, nfsd is incorrectly returning ENOENT instead of ESTALE on attempts to use a filehandle of a deleted file (spotted with pynfs test PUTFH3). The ENOENT was coming from xfs_iget. (It's tempting to wonder whether we should just map all xfs_iget errors to ESTALE, but I don't believe so--xfs_iget can also return ENOMEM at least, which we wouldn't want mapped to ESTALE.) While we're at it, the other return of ENOENT in xfs_nfs_get_inode() also looks wrong. Signed-off-by: J. Bruce Fields Signed-off-by: Alex Elder --- Reading git-diff-tree failed