diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-07-14 20:50:36 (GMT) |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-20 23:35:21 (GMT) |
commit | ad1a2c878ca70829874b4fcc83223cccb4e26dab (patch) | |
tree | fe664063bf7675a1be90c8c61c5ec7e09f99300e /fs/xfs/xfs_trans.c | |
parent | adab0f67d1cdaf468bbc311bce4d61f17626a536 (diff) | |
download | linux-fsl-qoriq-ad1a2c878ca70829874b4fcc83223cccb4e26dab.tar.xz |
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 <bfields@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
0 files changed, 0 insertions, 0 deletions