diff options
author | Chunwei Chen <[email protected]> | 2016-07-08 14:51:42 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-07-12 13:34:15 -0700 |
commit | 6c2530647ce3f1fe92075b7ed96144fa3541d8f5 (patch) | |
tree | a6a758890f15632a1f9ef2d021ea48fa4eea9667 /module/zfs/zfs_vfsops.c | |
parent | d4701011efe9c8268dfc3af8d174a16aa6334a9b (diff) |
fh_to_dentry should return ESTALE when generation mismatch
When generation mismatch, it usually means the file pointed by the file handle
was deleted. We should return ESTALE to indicate this. We return ENOENT in
zfs_vget since zpl_fh_to_dentry will convert it to ESTALE.
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #4828
Diffstat (limited to 'module/zfs/zfs_vfsops.c')
-rw-r--r-- | module/zfs/zfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c index e05448b9f..3c9a8476c 100644 --- a/module/zfs/zfs_vfsops.c +++ b/module/zfs/zfs_vfsops.c @@ -1560,7 +1560,7 @@ zfs_vget(struct super_block *sb, struct inode **ipp, fid_t *fidp) fid_gen); iput(ZTOI(zp)); ZFS_EXIT(zsb); - return (SET_ERROR(EINVAL)); + return (SET_ERROR(ENOENT)); } *ipp = ZTOI(zp); |