Lines Matching refs:g_zfs
101 zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET);
106 err = zfs_err_to_be_err(g_zfs);
255 if ((g_zfs = libzfs_init()) == NULL) {
277 if (g_zfs)
278 libzfs_fini(g_zfs);
280 g_zfs = NULL;
837 if (g_zfs == NULL) {
844 if ((zret = zpool_iter(g_zfs,
852 libzfs_error_description(g_zfs));
853 ret = zfs_err_to_be_err(g_zfs);
871 if ((zhp = zfs_open(g_zfs, be_container_ds,
933 if (!zfs_dataset_exists(g_zfs, be_container_ds, ZFS_TYPE_FILESYSTEM)) {
941 if ((zhp = zfs_open(g_zfs, be_container_ds, ZFS_TYPE_FILESYSTEM)) ==
1958 ret = zpool_iter(g_zfs, be_exists_callback,
1973 libzfs_error_description(g_zfs));
2040 if (zfs_dataset_exists(g_zfs, be_container_ds, ZFS_TYPE_FILESYSTEM)) {
2090 if (g_zfs == NULL) {
2099 if ((zret = zpool_iter(g_zfs, be_zpool_find_rpools_callback, &rpd))
2117 libzfs_error_description(g_zfs));
2118 ret = zfs_err_to_be_err(g_zfs);