HomeFreeBSD

fh_to_dentry should return ESTALE when generation mismatch

Description

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

Details

Provenance
Chunwei Chen <david.chen@osnexus.com>Authored on Jul 8 2016, 9:51 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 12 2016, 8:34 PM
Parents
rGd4701011efe9: Add configure result for xattr_handler
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6c2530647ce3: fh_to_dentry should return ESTALE when generation mismatch (authored by Chunwei Chen <david.chen@osnexus.com>).Jul 12 2016, 8:34 PM