HomeFreeBSD

Skip snapshot in zfs_iter_mounted()

Description

Skip snapshot in zfs_iter_mounted()

The intention of the zfs_iter_mounted() is to traverse the dataset
and its descendants, not the snapshots. The current code can cause
a mounted snapshot to be included and thus zfs_open() on the snapshot
with ZFS_TYPE_FILESYSTEM would print confusing message such as "cannot
open 'rpool/fs@snap': snapshot delimiter '@' is not expected here".

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #12447
Closes #12448

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Oct 20 2021, 11:07 PM
GitHub <noreply@github.com>Committed on Oct 20 2021, 11:07 PM
Parents
rG1886cdfcfb97: vdev_id: Fix enclosure_symlinks feature
Branches
Unknown
Tags
Unknown