Searched refs:g_zfs (Results 1 - 12 of 12) sorted by relevance
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_util.h | 36 libzfs_handle_t *g_zfs; variable
|
H A D | zfs_main.c | 77 libzfs_handle_t *g_zfs; variable 645 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 655 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM | 658 if (zfs_create_ancestors(g_zfs, argv[1]) != 0) 669 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET); 732 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 735 libzfs_error_description(g_zfs)); 749 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 752 libzfs_error_description(g_zfs)); 816 zpool_handle = zpool_open(g_zfs, arg [all...] |
H A D | zfs_iter.c | 433 ret = zfs_iter_root(g_zfs, zfs_callback, &cb); 453 zhp = zfs_path_to_zhandle(g_zfs, argv[i], 456 zhp = zfs_open(g_zfs, argv[i], argtype);
|
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zinject/ |
H A D | zinject.h | 64 extern libzfs_handle_t *g_zfs;
|
H A D | zinject.c | 156 libzfs_handle_t *g_zfs; variable 578 if ((g_zfs = libzfs_init()) == NULL) { 584 libzfs_print_on_error(g_zfs, B_TRUE); 970 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 984 libzfs_fini(g_zfs);
|
H A D | translate.c | 442 if ((zhp = zpool_open(g_zfs, pool)) == NULL)
|
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_util.h | 66 libzfs_handle_t *g_zfs; variable
|
H A D | zpool_iter.c | 127 (void) zpool_iter(g_zfs, add_pool, zlp); 135 if (zhp = zpool_open_canfail(g_zfs, argv[i])) { 156 (void) zpool_iter(g_zfs, add_pool, zlp);
|
H A D | zpool_main.c | 386 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE); 537 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 615 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 670 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) != 0) { 1030 if (zpool_create(g_zfs, poolname, 1032 zfs_handle_t *pool = zfs_open(g_zfs, poolname, 1039 } else if (libzfs_errno(g_zfs) == EZFS_INVALIDNAME) { 1101 if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL) { 1174 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) == NULL) { 1208 char *name = zpool_vdev_name(g_zfs, zh [all...] |
H A D | zpool_vdev.c | 306 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) == 0 && inuse) { 956 if (zpool_label_disk(g_zfs, zhp, diskname) == -1) 1036 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) != 0 ||
|
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zhack/ |
H A D | zhack.c | 58 libzfs_handle_t *g_zfs; variable 132 g_zfs = libzfs_init(); 133 ASSERT(g_zfs != NULL); 155 pools = zpool_search_import(g_zfs, &g_importargs); 160 if (zpool_search_import(g_zfs, &g_importargs) != NULL || 538 libzfs_fini(g_zfs);
|
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zdb/ |
H A D | zdb.c | 91 libzfs_handle_t *g_zfs; variable 3058 pools = zpool_search_import(g_zfs, &args); 3194 g_zfs = libzfs_init(); 3195 ASSERT(g_zfs != NULL); 3336 libzfs_fini(g_zfs);
|
Completed in 182 milliseconds