Lines Matching refs:g_zfs
55 libzfs_handle_t *g_zfs; variable
160 (void) zfs_iter_root(g_zfs, match_mountpoint, &cb); in mount2zhandle()
298 res = zfs_snapshot(g_zfs, snapshot_name, B_FALSE, NULL); in take_snapshot()
377 if ((zhp = zfs_open(g_zfs, snapshot_name, ZFS_TYPE_SNAPSHOT)) == NULL) in clone_snap()
407 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) in clone_snap()
545 zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_DATASET); in snap2path()
711 libzfs_error_description(g_zfs)); in rename_snap()
774 if ((cln_zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL) in promote_clone()
779 nm, libzfs_error_description(g_zfs)); in promote_clone()
820 if ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL) in promote_all_clones()
950 if ((zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_SNAPSHOT)) in clone_zfs()
983 if ((zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) != NULL) { in create_zfs_zonepath()
1003 if (zfs_create(g_zfs, zfs_name, ZFS_TYPE_FILESYSTEM, props) != 0 || in create_zfs_zonepath()
1004 (zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) == NULL) { in create_zfs_zonepath()
1006 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
1015 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
1078 zfs_get_name(zhp), libzfs_error_description(g_zfs)); in destroy_zfs()
1090 zfs_get_name(zhp), libzfs_error_description(g_zfs)); in destroy_zfs()
1112 if ((ohp = zfs_open(g_zfs, origin, in destroy_zfs()
1220 if ((zhp = zfs_open(g_zfs, dstab.zone_dataset_name, in verify_datasets()
1224 libzfs_error_description(g_zfs)); in verify_datasets()
1258 if ((zhp = zfs_open(g_zfs, fstab->zone_fs_special, in verify_fs_zfs()
1376 if ((zhp = zfs_open(g_zfs, dataset_name, ZFS_TYPE_DATASET)) == NULL) { in get_zfs_non_legacy_mountpoint()
1550 if ((zhp = zfs_open(g_zfs, mtab->mnt_special, in zone_mount_rootfs()
1565 zoneroot, libzfs_error_description(g_zfs)); in zone_mount_rootfs()
1640 if ((zhp = zfs_open(g_zfs, mtab->mnt_special, in zone_unmount_rootfs()
1653 zoneroot, libzfs_error_description(g_zfs)); in zone_unmount_rootfs()
1679 if ((g_zfs = libzfs_init()) == NULL) { in init_zfs()