HomeSort by: relevance | last modified time | path
    Searched defs:zhp (Results 1 - 13 of 13) sorted by relevancy

  /src/external/cddl/osnet/dist/cmd/zinject/
translate.c 434 zpool_handle_t *zhp; local
442 if ((zhp = zpool_open(g_zfs, pool)) == NULL)
447 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL);
zinject.c 676 zfs_handle_t *zhp; local
1076 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL)
1079 if (zfs_unmount(zhp, NULL, 0) != 0)
1088 ret = (zfs_mount(zhp, NULL, 0) != 0);
  /src/external/cddl/osnet/dist/cmd/zpool/
zpool_iter.c 77 add_pool(zpool_handle_t *zhp, void *data)
83 node->zn_handle = zhp;
87 zpool_expand_proplist(zhp, zlp->zl_proplist) != 0) {
88 zpool_close(zhp);
94 zpool_close(zhp);
134 zpool_handle_t *zhp; local
136 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) !=
138 if (add_pool(zhp, zlp) != 0)
186 pool_list_remove(zpool_list_t *zlp, zpool_handle_t *zhp)
190 search.zn_handle = zhp;
    [all...]
zpool_main.c 366 print_vdev_tree(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int indent,
388 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE);
389 print_vdev_tree(zhp, vname, child[c], indent + 2,
502 zpool_handle_t *zhp; local
539 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
542 if ((config = zpool_get_config(zhp, NULL)) == NULL) {
545 zpool_close(zhp);
550 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun,
553 zpool_close(zhp);
564 "configuration:\n"), zpool_get_name(zhp));
600 zpool_handle_t *zhp; local
1102 zpool_handle_t *zhp; local
1175 zpool_handle_t *zhp; local
1858 zpool_handle_t *zhp; local
3210 zpool_handle_t *zhp; local
3336 zpool_handle_t *zhp; local
3404 zpool_handle_t *zhp; local
3524 zpool_handle_t *zhp; local
3602 zpool_handle_t *zhp; local
3663 zpool_handle_t *zhp; local
3741 zpool_handle_t *zhp; local
3789 zpool_handle_t *zhp; local
    [all...]
  /src/external/cddl/osnet/dist/lib/libzfs/common/
libzfs_config.c 220 zpool_get_config(zpool_handle_t *zhp, nvlist_t **oldconfig)
223 *oldconfig = zhp->zpool_old_config;
224 return (zhp->zpool_config);
232 zpool_get_features(zpool_handle_t *zhp)
236 config = zpool_get_config(zhp, NULL);
243 error = zpool_refresh_stats(zhp, &missing);
248 config = zpool_get_config(zhp, NULL);
265 zpool_refresh_stats(zpool_handle_t *zhp, boolean_t *missing)
270 libzfs_handle_t *hdl = zhp->zpool_hdl;
273 (void) strcpy(zc.zc_name, zhp->zpool_name)
404 zpool_handle_t *zhp; local
449 zfs_handle_t *zhp; local
    [all...]
libzfs_iter.c 40 zfs_iter_clones(zfs_handle_t *zhp, zfs_iter_f func, void *data)
42 nvlist_t *nvl = zfs_get_clones_nvl(zhp);
50 zfs_handle_t *clone = zfs_open(zhp->zfs_hdl, nvpair_name(pair),
62 zfs_do_list_ioctl(zfs_handle_t *zhp, unsigned long arg, zfs_cmd_t *zc)
69 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
70 rc = ioctl(zhp->zfs_hdl->libzfs_fd, arg, zc);
76 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) {
92 rc = zfs_standard_error(zhp->zfs_hdl, errno,
105 zfs_iter_filesystems(zfs_handle_t *zhp, zfs_iter_f func, void *data)
111 if (zhp->zfs_type != ZFS_TYPE_FILESYSTEM
445 zfs_handle_t *zhp; member in struct:iter_stack_frame
    [all...]
libzfs_diff.c 68 zfs_handle_t *zhp; member in struct:differ_info
102 error = ioctl(di->zhp->zfs_hdl->libzfs_fd, ZFS_IOC_OBJ_TO_STATS, &zc);
388 libzfs_handle_t *lhdl = di->zhp->zfs_hdl;
505 return (zfs_error(di->zhp->zfs_hdl, EZFS_DIFF, di->errbuf));
518 libzfs_handle_t *hdl = di->zhp->zfs_hdl;
564 libzfs_handle_t *hdl = di->zhp->zfs_hdl;
624 zfs_handle_t *zhp; local
626 di->ds = zfs_alloc(di->zhp->zfs_hdl, tdslen + 1);
630 zhp = zfs_open(hdl, di->ds, ZFS_TYPE_FILESYSTEM);
631 while (zhp != NULL)
    [all...]
libzfs_import.c 364 zpool_handle_t *zhp; local
367 if (zpool_open_silent(hdl, name, &zhp) != 0)
370 if (zhp == NULL) {
375 verify(nvlist_lookup_uint64(zhp->zpool_config, ZPOOL_CONFIG_POOL_GUID,
378 zpool_close(zhp);
1537 name_or_guid_exists(zpool_handle_t *zhp, void *data)
1545 verify(nvlist_lookup_string(zhp->zpool_config,
1552 verify(nvlist_lookup_uint64(zhp->zpool_config,
1558 zpool_close(zhp);
1605 find_aux(zpool_handle_t *zhp, void *data
1645 zpool_handle_t *zhp; local
    [all...]
libzfs_pool.c 67 zpool_get_all_props(zpool_handle_t *zhp)
70 libzfs_handle_t *hdl = zhp->zpool_hdl;
72 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name));
89 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) {
100 zpool_props_refresh(zpool_handle_t *zhp)
104 old_props = zhp->zpool_props;
106 if (zpool_get_all_props(zhp) != 0)
114 zpool_get_prop_string(zpool_handle_t *zhp, zpool_prop_t prop,
122 nvl = zhp->zpool_props;
140 zpool_get_prop_int(zpool_handle_t *zhp, zpool_prop_t prop, zprop_source_t *src
434 zpool_handle_t *zhp; local
974 zpool_handle_t *zhp; local
1016 zpool_handle_t *zhp; local
1047 zpool_handle_t *zhp; local
1818 zpool_handle_t *zhp; local
4060 zpool_handle_t *zhp = NULL; local
    [all...]
libzfs_dataset.c 202 process_user_props(zfs_handle_t *zhp, nvlist_t *props)
204 libzfs_handle_t *hdl = zhp->zfs_hdl;
231 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name)
233 libzfs_handle_t *hdl = zhp->zfs_hdl;
245 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len)
247 libzfs_handle_t *hdl = zhp->zfs_hdl;
262 zpool_handle(zfs_handle_t *zhp)
268 len = strcspn(zhp->zfs_name, "/@#") + 1;
269 pool_name = zfs_alloc(zhp->zfs_hdl, len);
270 (void) strlcpy(pool_name, zhp->zfs_name, len)
448 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local
475 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local
492 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local
508 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local
588 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local
624 zfs_handle_t *zhp; local
3021 zfs_handle_t *zhp; local
3098 zfs_handle_t *zhp; local
3742 zfs_handle_t *zhp; local
    [all...]
libzfs_sendrecv.c 632 static void send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv);
635 send_iterate_snap(zfs_handle_t *zhp, void *arg)
638 uint64_t guid = zhp->zfs_dmustats.dds_guid;
639 uint64_t txg = zhp->zfs_dmustats.dds_creation_txg;
643 snapname = strrchr(zhp->zfs_name, '@')+1;
650 zhp->zfs_name, sd->tosnap);
652 zfs_close(zhp);
668 send_iterate_prop(zhp, nv);
672 zfs_close(zhp);
677 send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv
763 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); local
883 zfs_handle_t *zhp; local
1104 zfs_handle_t *zhp = pa->pa_zhp; local
1421 zfs_handle_t *zhp; local
1570 zfs_handle_t *zhp; local
2130 zfs_handle_t *zhp; local
2202 zfs_handle_t *zhp; local
2316 zfs_handle_t *zhp = make_dataset_handle(hdl, pname); local
2830 zfs_handle_t *zhp; local
3016 zfs_handle_t *zhp = zfs_open(hdl, target_fs, local
3276 zfs_handle_t *zhp; local
3769 zfs_handle_t *zhp; local
    [all...]
  /src/external/cddl/osnet/dist/cmd/zfs/
zfs_iter.c 76 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb)
83 zph = zfs_get_pool_handle(zhp);
92 zfs_callback(zfs_handle_t *zhp, void *data)
96 boolean_t include_snaps = zfs_include_snapshots(zhp, cb);
99 if ((zfs_get_type(zhp) & cb->cb_types) ||
100 ((zfs_get_type(zhp) == ZFS_TYPE_SNAPSHOT) && include_snaps)) {
104 node->zn_handle = zhp;
111 zfs_prune_proplist(zhp,
114 if (zfs_expand_proplist(zhp, cb->cb_proplist,
136 if (zfs_get_type(zhp) == ZFS_TYPE_FILESYSTEM
443 zfs_handle_t *zhp; local
    [all...]
zfs_main.c 617 should_auto_mount(zfs_handle_t *zhp)
619 if (!zfs_prop_valid_for_type(ZFS_PROP_CANMOUNT, zfs_get_type(zhp)))
621 return (zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT) == ZFS_CANMOUNT_ON);
637 zfs_handle_t *zhp = NULL; local
683 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL)
701 ret = zfs_clone(zhp, argv[1], props);
729 zfs_close(zhp);
735 if (zhp)
736 zfs_close(zhp);
763 zfs_handle_t *zhp = NULL local
1228 zfs_handle_t *zhp = zfs_open(g_zfs, nvpair_name(pair), local
1257 zfs_handle_t *zhp = NULL; local
2709 zfs_handle_t *zhp; local
3245 zfs_handle_t *zhp; local
3358 zfs_handle_t *zhp; local
3483 zfs_handle_t *zhp, *snap; local
3738 zfs_handle_t *zhp; local
3777 zfs_handle_t *zhp; local
4076 zfs_handle_t *zhp = zfs_open(g_zfs, local
4082 zfs_handle_t *zhp = zfs_open(g_zfs, local
5346 zfs_handle_t *zhp; local
5501 zfs_handle_t *zhp; local
6217 zfs_handle_t *zhp; local
6286 zfs_handle_t *zhp; local
6434 zfs_handle_t *zhp; local
6717 zfs_handle_t *zhp; local
6780 zfs_handle_t *zhp; local
6928 zfs_handle_t *zhp; local
7009 zfs_handle_t *zhp; local
    [all...]

Completed in 36 milliseconds