Searched refs:g_zfs (Results 1 - 12 of 12) sorted by relevance
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_util.h | 36 libzfs_handle_t *g_zfs; variable
|
H A D | zfs_main.c | 79 libzfs_handle_t *g_zfs; variable 673 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 683 if (zfs_dataset_exists(g_zfs, argv[1], ZFS_TYPE_FILESYSTEM | 686 if (zfs_create_ancestors(g_zfs, argv[1]) != 0) 697 clone = zfs_open(g_zfs, argv[1], ZFS_TYPE_DATASET); 772 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 775 libzfs_error_description(g_zfs)); 789 if (zfs_nicestrtonum(g_zfs, optarg, &intval) != 0) { 792 libzfs_error_description(g_zfs)); 858 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-10-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-10-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_util.h | 66 libzfs_handle_t *g_zfs; variable
|
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 | 389 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE); 555 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 633 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 730 ret = zpool_in_use(g_zfs, fd, &state, &name, &inuse); 1097 if (zpool_create(g_zfs, poolname, 1099 zfs_handle_t *pool = zfs_open(g_zfs, 1106 } else if (libzfs_errno(g_zfs) == EZFS_INVALIDNAME) { 1168 if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL) { 1241 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) == NULL) { 1275 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) { 974 if (zpool_label_disk(g_zfs, zhp, diskname) == -1) 1054 if (zpool_in_use(g_zfs, fd, &state, &name, &inuse) != 0 ||
|
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zhack/ |
H A D | zhack.c | 57 libzfs_handle_t *g_zfs; variable 136 g_zfs = libzfs_init(); 137 ASSERT(g_zfs != NULL); 159 pools = zpool_search_import(g_zfs, &g_importargs); 164 if (zpool_search_import(g_zfs, &g_importargs) != NULL || 564 libzfs_fini(g_zfs);
|
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zdb/ |
H A D | zdb.c | 97 libzfs_handle_t *g_zfs; variable 3586 pools = zpool_search_import(g_zfs, &args); 3767 g_zfs = libzfs_init(); 3768 if (g_zfs == NULL) 3925 libzfs_fini(g_zfs);
|
Completed in 221 milliseconds