zfs_ioc_snapshot_list_next() converts ENOENT returned from dmu_objset_hold(zc->zc_name) to ESRCH. So, if zc_name names a dataset that does not exists, then to the userland it would instead appear as if the dataset has not snapshots. It seems that the code behaves that way from the very start.
I wonder what is the reason for that? Thanks! -- Andriy Gapon _______________________________________________ developer mailing list [email protected] http://lists.open-zfs.org/mailman/listinfo/developer
