zfs/lib
youzhongyang ec64fdb93d
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
2021-10-20 16:07:19 -07:00
..
libavl lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libefi lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair Update ABI files via new libabigail version 2021-09-02 10:02:18 -07:00
libshare libshare: nfs: pass through ipv6 addresses in bracket notation 2021-10-20 10:40:00 -07:00
libspl libspl: fix warning about missing spl_pagesize declaration 2021-09-24 16:59:26 -06:00
libtpool lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Update ABI files via new libabigail version 2021-09-02 10:02:18 -07:00
libzfs Skip snapshot in zfs_iter_mounted() 2021-10-20 16:07:19 -07:00
libzfs_core Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
libzfsbootenv Use fallthrough macro 2021-09-14 10:17:54 -06:00
libzpool Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00