]> granicus.if.org Git - zfs/commit
fh_to_dentry should return ESTALE when generation mismatch
authorChunwei Chen <david.chen@osnexus.com>
Fri, 8 Jul 2016 21:51:42 +0000 (14:51 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Jul 2016 20:34:15 +0000 (13:34 -0700)
commit6c2530647ce3f1fe92075b7ed96144fa3541d8f5
treea6a758890f15632a1f9ef2d021ea48fa4eea9667
parentd4701011efe9c8268dfc3af8d174a16aa6334a9b
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 <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4828
module/zfs/zfs_vfsops.c