HomeFreeBSD

Fix link count of root inode when snapdir is visible

Description

Fix link count of root inode when snapdir is visible

Given how zfs_getattr() is implemented, zfs_getattr_fast() (used by
->getattr() of zpl inodes) also needs to consider an additional link
count if "snapdir" property is set to "visible".

Without this, # of directories in root inode of each dataset doesn't
match the link count when snapdir is visible.

Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8727

Details

Provenance
kusumi.tomohiro_gmail.comAuthored on May 8 2019, 11:40 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 8 2019, 11:40 PM
Parents
rGe2dddb7e58f7: Fix typesetting of Errata #4
Branches
Unknown
Tags
Unknown