Lines Matching refs:g_zfs
53 libzfs_handle_t *g_zfs; variable
152 (void) zfs_iter_root(g_zfs, match_mountpoint, &cb); in mount2zhandle()
290 res = zfs_snapshot(g_zfs, snapshot_name, B_FALSE, NULL); in take_snapshot()
369 if ((zhp = zfs_open(g_zfs, snapshot_name, ZFS_TYPE_SNAPSHOT)) == NULL) in clone_snap()
399 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL) in clone_snap()
537 zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_DATASET); in snap2path()
703 libzfs_error_description(g_zfs)); in rename_snap()
766 if ((cln_zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL) in promote_clone()
771 nm, libzfs_error_description(g_zfs)); in promote_clone()
812 if ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL) in promote_all_clones()
942 if ((zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_SNAPSHOT)) in clone_zfs()
975 if ((zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) != NULL) { in create_zfs_zonepath()
995 if (zfs_create(g_zfs, zfs_name, ZFS_TYPE_FILESYSTEM, props) != 0 || in create_zfs_zonepath()
996 (zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) == NULL) { in create_zfs_zonepath()
998 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
1007 "%s\n"), zfs_name, libzfs_error_description(g_zfs)); in create_zfs_zonepath()
1070 zfs_get_name(zhp), libzfs_error_description(g_zfs)); in destroy_zfs()
1082 zfs_get_name(zhp), libzfs_error_description(g_zfs)); in destroy_zfs()
1104 if ((ohp = zfs_open(g_zfs, origin, in destroy_zfs()
1212 if ((zhp = zfs_open(g_zfs, dstab.zone_dataset_name, in verify_datasets()
1216 libzfs_error_description(g_zfs)); in verify_datasets()
1250 if ((zhp = zfs_open(g_zfs, fstab->zone_fs_special, in verify_fs_zfs()
1368 if ((zhp = zfs_open(g_zfs, dataset_name, ZFS_TYPE_DATASET)) == NULL) { in get_zfs_non_legacy_mountpoint()
1542 if ((zhp = zfs_open(g_zfs, mtab->mnt_special, in zone_mount_rootfs()
1557 zoneroot, libzfs_error_description(g_zfs)); in zone_mount_rootfs()
1632 if ((zhp = zfs_open(g_zfs, mtab->mnt_special, in zone_unmount_rootfs()
1645 zoneroot, libzfs_error_description(g_zfs)); in zone_unmount_rootfs()
1671 if ((g_zfs = libzfs_init()) == NULL) { in init_zfs()