Lines Matching defs:g_zfs
54 libzfs_handle_t *g_zfs;
153 (void) zfs_iter_root(g_zfs, match_mountpoint, &cb);
291 res = zfs_snapshot(g_zfs, snapshot_name, B_FALSE, NULL);
370 if ((zhp = zfs_open(g_zfs, snapshot_name, ZFS_TYPE_SNAPSHOT)) == NULL)
400 if ((clone = zfs_open(g_zfs, zonepath, ZFS_TYPE_DATASET)) == NULL)
538 zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_DATASET);
704 libzfs_error_description(g_zfs));
767 if ((cln_zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL)
772 nm, libzfs_error_description(g_zfs));
813 if ((zhp = zfs_open(g_zfs, nm, ZFS_TYPE_FILESYSTEM)) == NULL)
943 if ((zhp = zfs_open(g_zfs, snap_name, ZFS_TYPE_SNAPSHOT))
976 if ((zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) != NULL) {
996 if (zfs_create(g_zfs, zfs_name, ZFS_TYPE_FILESYSTEM, props) != 0 ||
997 (zhp = zfs_open(g_zfs, zfs_name, ZFS_TYPE_DATASET)) == NULL) {
999 "%s\n"), zfs_name, libzfs_error_description(g_zfs));
1008 "%s\n"), zfs_name, libzfs_error_description(g_zfs));
1071 zfs_get_name(zhp), libzfs_error_description(g_zfs));
1083 zfs_get_name(zhp), libzfs_error_description(g_zfs));
1105 if ((ohp = zfs_open(g_zfs, origin,
1213 if ((zhp = zfs_open(g_zfs, dstab.zone_dataset_name,
1217 libzfs_error_description(g_zfs));
1251 if ((zhp = zfs_open(g_zfs, fstab->zone_fs_special,
1369 if ((zhp = zfs_open(g_zfs, dataset_name, ZFS_TYPE_DATASET)) == NULL) {
1543 if ((zhp = zfs_open(g_zfs, mtab->mnt_special,
1558 zoneroot, libzfs_error_description(g_zfs));
1633 if ((zhp = zfs_open(g_zfs, mtab->mnt_special,
1646 zoneroot, libzfs_error_description(g_zfs));
1672 if ((g_zfs = libzfs_init()) == NULL) {