Lines Matching refs:g_zfs
154 if ((zret = zpool_iter(g_zfs, be_find_zpool_callback, &cb)) == 0) {
161 libzfs_error_description(g_zfs));
162 ret = zfs_err_to_be_err(g_zfs);
204 if (g_zfs == NULL) {
229 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) != NULL) {
240 libzfs_error_description(g_zfs));
247 libzfs_error_description(g_zfs));
248 ret = zfs_err_to_be_err(g_zfs);
261 zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM);
421 if ((zhp = zpool_open(g_zfs, boot_rpool)) == NULL) {
423 "(%s): %s\n"), boot_rpool, libzfs_error_description(g_zfs));
424 err = zfs_err_to_be_err(g_zfs);
432 libzfs_error_description(g_zfs));
433 err = zfs_err_to_be_err(g_zfs);
469 if ((zhp = zfs_open(g_zfs, ds_path, ZFS_TYPE_DATASET)) ==
473 libzfs_error_description(g_zfs));
474 err = zfs_err_to_be_err(g_zfs);
490 ds_path, libzfs_error_description(g_zfs));
491 err = zfs_err_to_be_err(g_zfs);
502 if ((zhp = zfs_open(g_zfs, ds_path, ZFS_TYPE_DATASET))
506 libzfs_error_description(g_zfs));
507 err = zfs_err_to_be_err(g_zfs);
526 libzfs_error_description(g_zfs));
527 err = zfs_err_to_be_err(g_zfs);
575 if (g_zfs == NULL) {
581 if ((zphp = zpool_open(g_zfs, zpool)) == NULL) {
584 libzfs_error_description(g_zfs));
585 return (zfs_err_to_be_err(g_zfs));
591 libzfs_error_description(g_zfs));
592 return (zfs_err_to_be_err(g_zfs));
600 "vdev tree: %s\n"), libzfs_error_description(g_zfs));
601 return (zfs_err_to_be_err(g_zfs));
608 libzfs_error_description(g_zfs));
609 return (zfs_err_to_be_err(g_zfs));
633 libzfs_error_description(g_zfs));
634 return (zfs_err_to_be_err(g_zfs));
756 if ((zhp = zfs_open(g_zfs, be_root_ds,
760 libzfs_error_description(g_zfs));
761 err = zfs_err_to_be_err(g_zfs);
819 if ((z_zhp = zfs_open(g_zfs, zoneroot_ds,
824 libzfs_error_description(g_zfs));
825 err = zfs_err_to_be_err(g_zfs);
845 libzfs_error_description(g_zfs));
940 if (libzfs_errno(g_zfs) != EZFS_EXISTS) {
944 libzfs_error_description(g_zfs));
945 ret = zfs_err_to_be_err(g_zfs);
964 libzfs_error_description(g_zfs));
965 ret = zfs_err_to_be_err(g_zfs);
970 if ((zhp = zfs_open(g_zfs, sub_dataset,
974 libzfs_error_description(g_zfs));
975 ret = zfs_err_to_be_err(g_zfs);