Searched refs:g_zfs (Results 1 - 12 of 12) sorted by relevance

/freebsd-head/cddl/contrib/opensolaris/cmd/zfs/
H A Dzfs_util.h36 libzfs_handle_t *g_zfs; variable
H A Dzfs_main.c83 libzfs_handle_t *g_zfs; variable
703 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
713 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM |
716 if (zfs_create_ancestors(g_zfs, argv[1]) != 0)
727 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET);
802 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
805 libzfs_error_description(g_zfs));
819 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) {
822 libzfs_error_description(g_zfs));
888 zpool_handle = zpool_open(g_zfs, arg
[all...]
H A Dzfs_iter.c440 ret = zfs_iter_root(g_zfs, zfs_callback, &cb);
460 zhp = zfs_path_to_zhandle(g_zfs, argv[i],
463 zhp = zfs_open(g_zfs, argv[i], argtype);
/freebsd-head/cddl/contrib/opensolaris/cmd/zinject/
H A Dzinject.h64 extern libzfs_handle_t *g_zfs;
H A Dzinject.c157 libzfs_handle_t *g_zfs; variable
683 if ((g_zfs = libzfs_init()) == NULL) {
689 libzfs_print_on_error(g_zfs, B_TRUE);
1076 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
1090 libzfs_fini(g_zfs);
H A Dtranslate.c442 if ((zhp = zpool_open(g_zfs, pool)) == NULL)
/freebsd-head/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_util.h67 libzfs_handle_t *g_zfs; variable
H A Dzpool_iter.c128 (void) zpool_iter(g_zfs, add_pool, zlp);
136 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) !=
158 (void) zpool_iter(g_zfs, add_pool, zlp);
H A Dzpool_main.c426 vname = zpool_vdev_name(g_zfs, zhp, child[c], name_flags);
607 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
718 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
855 ret = zpool_in_use(g_zfs, fd, &state, &name, &inuse);
1017 if (zfs_nicestrtonum(g_zfs, propval,
1022 libzfs_error_description(g_zfs));
1295 if (zpool_create(g_zfs, poolname,
1297 zfs_handle_t *pool = zfs_open(g_zfs,
1304 } else if (libzfs_errno(g_zfs) == EZFS_INVALIDNAME) {
1366 if ((zhp = zpool_open_canfail(g_zfs, poo
[all...]
H A Dzpool_vdev.c307 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) == 0 && inuse) {
1058 ret = zpool_label_disk(g_zfs, zhp, diskname, boot_type,
1155 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) != 0 ||
/freebsd-head/cddl/contrib/opensolaris/cmd/zhack/
H A Dzhack.c57 libzfs_handle_t *g_zfs; variable
131 g_zfs = libzfs_init();
132 ASSERT(g_zfs != NULL);
141 error = zpool_tryimport(g_zfs, target, &config, &g_importargs);
144 libzfs_error_description(g_zfs));
531 libzfs_fini(g_zfs);
/freebsd-head/cddl/contrib/opensolaris/cmd/zdb/
H A Dzdb.c111 static libzfs_handle_t *g_zfs; variable
5534 g_zfs = libzfs_init();
5535 if (g_zfs == NULL)
5615 error = zpool_tryimport(g_zfs, target_pool, &cfg, &args);
5745 libzfs_fini(g_zfs);

Completed in 459 milliseconds