Lines Matching defs:g_zfs

76 libzfs_handle_t *g_zfs;
658 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
668 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM |
671 if (zfs_create_ancestors(g_zfs, argv[1]) != 0)
682 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET);
754 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
757 libzfs_error_description(g_zfs));
771 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
774 libzfs_error_description(g_zfs));
832 zpool_handle = zpool_open(g_zfs, argv[0]);
846 if (props && (real_props = zfs_valid_proplist(g_zfs, type,
872 if (zfs_dataset_exists(g_zfs, argv[0], type)) {
876 if (zfs_create_ancestors(g_zfs, argv[0]) != 0)
881 if (zfs_create(g_zfs, argv[0], type, props) != 0)
884 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL)
1056 int error = zfs_destroy_snaps_nvl(g_zfs,
1192 zfs_handle_t *zhp = zfs_open(g_zfs, nvpair_name(pair),
1281 zhp = zfs_open(g_zfs, argv[0],
1320 err = zfs_destroy_snaps_nvl(g_zfs,
1329 err = zfs_destroy_snaps_nvl(g_zfs, cb.cb_nvl,
1369 (void) zfs_standard_error(g_zfs, err,
1378 if ((zhp = zfs_open(g_zfs, argv[0], type)) == NULL)
1430 err = zfs_destroy_snaps_nvl(g_zfs,
1787 if (zprop_get_list(g_zfs, fields, &cb.cb_proplist, ZFS_TYPE_DATASET)
2055 (void) zpool_log_history(g_zfs, history_str);
2796 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL)
3168 if (zprop_get_list(g_zfs, fields, &cb.cb_proplist, ZFS_TYPE_DATASET)
3257 if ((zhp = zfs_open(g_zfs, argv[0], parents ? ZFS_TYPE_FILESYSTEM |
3263 zfs_create_ancestors(g_zfs, argv[1]) != 0) {
3304 zhp = zfs_open(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME);
3446 if ((snap = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
3453 if ((zhp = zfs_open(g_zfs, parentname, ZFS_TYPE_DATASET)) == NULL) {
3501 switch (libzfs_errno(g_zfs)) {
3670 zhp = zfs_open(g_zfs, argv[0],
3678 ret = zfs_snapshot_nvl(g_zfs, sd.sd_nvl, props);
3820 return (zfs_send_resume(g_zfs, &flags, STDOUT_FILENO,
3841 zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET);
3873 zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME);
4021 if (zfs_dataset_exists(g_zfs, namebuf,
4023 zfs_handle_t *zhp = zfs_open(g_zfs,
4029 zfs_handle_t *zhp = zfs_open(g_zfs,
4055 err = zfs_receive(g_zfs, argv[0], props, &flags, STDIN_FILENO, NULL);
5351 if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM |
5463 zhp = zfs_open(g_zfs, parent,
5757 (void) zfs_iter_root(g_zfs, get_one_dataset, &cb);
6159 if ((zhp = zfs_open(g_zfs, argv[0],
6269 if ((zhp = zfs_open(g_zfs, entry.mnt_special,
6408 if ((zhp = zfs_open(g_zfs, entry.mnt_special,
6524 if ((zhp = zfs_open(g_zfs, argv[0],
6675 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_FILESYSTEM)) == NULL)
6822 if ((zhp = zfs_open(g_zfs, copy, ZFS_TYPE_FILESYSTEM)) == NULL)
6895 zhp = zfs_open(g_zfs, snapname, ZFS_TYPE_SNAPSHOT);
6958 if ((g_zfs = libzfs_init()) == NULL) {
6966 libzfs_print_on_error(g_zfs, B_TRUE);
7021 libzfs_mnttab_cache(g_zfs, B_TRUE);
7034 libzfs_mnttab_cache(g_zfs, B_FALSE);
7040 (void) zpool_log_history(g_zfs, history_str);
7042 libzfs_fini(g_zfs);