Searched refs:g_zfs (Results 1 - 12 of 12) sorted by relevance
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_util.h | 36 extern libzfs_handle_t *g_zfs;
|
H A D | zfs_main.c | 83 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 D | zfs_iter.c | 440 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-12-stable/cddl/contrib/opensolaris/cmd/zinject/ |
H A D | zinject.h | 64 extern libzfs_handle_t *g_zfs;
|
H A D | zinject.c | 157 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 D | translate.c | 442 if ((zhp = zpool_open(g_zfs, pool)) == NULL)
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_util.h | 67 extern libzfs_handle_t *g_zfs;
|
H A D | zpool_iter.c | 128 (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 D | zpool_main.c | 67 libzfs_handle_t *g_zfs; variable 428 vname = zpool_vdev_name(g_zfs, zhp, child[c], name_flags); 609 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 720 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 857 ret = zpool_in_use(g_zfs, fd, &state, &name, &inuse); 1019 if (zfs_nicestrtonum(g_zfs, propval, 1024 libzfs_error_description(g_zfs)); 1297 if (zpool_create(g_zfs, poolname, 1299 zfs_handle_t *pool = zfs_open(g_zfs, 1306 } else if (libzfs_errno(g_zfs) [all...] |
H A D | zpool_vdev.c | 307 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-12-stable/cddl/contrib/opensolaris/cmd/zhack/ |
H A D | zhack.c | 57 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-12-stable/cddl/contrib/opensolaris/cmd/zdb/ |
H A D | zdb.c | 111 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 204 milliseconds