FreeBSD/cddl/contrib/opensolaris/cmd/zfs/zfs_iter.c
/*
 * Include snaps if they were requested or if this a zfs list where types
 * were not specified and the "listsnapshots" property is set on this pool.
 */
Include snaps if they were requested or if this a zfs list where types
were not specified and the "listsnapshots" property is set on this pool.
Include snaps if they were requested or if this a zfs list where types were not specified and the " listsnapshots " property is set on this pool .
static boolean_t
zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb)
{
	zpool_handle_t *zph;
	if ((cb->cb_flags & ZFS_ITER_PROP_LISTSNAPS) == 0)
		return (cb->cb_types & ZFS_TYPE_SNAPSHOT);
	zph = zfs_get_pool_handle(zhp);
	return (zpool_get_prop_int(zph, ZPOOL_PROP_LISTSNAPS, NULL));
}
static boolean_t zfs_include_snapshots ( zfs_handle_t * zhp , callback_data_t * cb ) { zpool_handle_t * zph ; if ( ( cb -> cb_flags & ZFS_ITER_PROP_LISTSNAPS ) == 0 ) return ( cb -> cb_types & ZFS_TYPE_SNAPSHOT ) ; zph = zfs_get_pool_handle ( zhp ) ; return ( zpool_get_prop_int ( zph , ZPOOL_PROP_LISTSNAPS , NULL ) ) ; }
Include snaps if they were requested or if this a zfs list where types
 were not specified and the "listsnapshots" property is set on this pool.
Include snaps if they were requested or if this a zfs list where types were not specified and the " listsnapshots " property is set on this pool .