FreeBSD/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/*
 * Generic callback function to list a dataset or snapshot.
 */
Generic callback function to list a dataset or snapshot.
Generic callback function to list a dataset or snapshot .
static int
list_callback(zfs_handle_t *zhp, void *data)
{
	list_cbdata_t *cbp = data;
	if (cbp->cb_first) {
		if (!cbp->cb_scripted)
			print_header(cbp);
		cbp->cb_first = B_FALSE;
	}
	print_dataset(zhp, cbp);
	return (0);
}
static int list_callback ( zfs_handle_t * zhp , void * data ) { list_cbdata_t * cbp = data ; if ( cbp -> cb_first ) { if ( ! cbp -> cb_scripted ) print_header ( cbp ) ; cbp -> cb_first = B_FALSE ; } print_dataset ( zhp , cbp ) ; return ( 0 ) ; }
Generic callback function to list a dataset or snapshot.
Generic callback function to list a dataset or snapshot .