| /onnv/onnv-gate/usr/src/cmd/ndmpd/ndmp/ |
| ndmpd_chkpnt.c | 59 * zhp (input) - ZFS handle pointer 68 ndmp_has_backup(zfs_handle_t *zhp, void *data) 73 name = zfs_get_name(zhp); 76 zfs_close(zhp); 81 zfs_close(zhp); 102 zfs_handle_t *zhp; local 107 if ((zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == 0) { 117 (void) zfs_iter_snapshots(zhp, ndmp_has_backup, &chkp); 118 zfs_close(zhp);
|
| ndmpd_dtime.c | 835 zfs_handle_t *zhp; local 854 ((zhp = zfs_open(zlibh, vol, ZFS_TYPE_DATASET)) != NULL)) { 855 if ((userprops = zfs_get_user_props(zhp)) == NULL || 860 zfs_close(zhp); 868 zfs_close(zhp); 873 zfs_close(zhp); 878 zfs_close(zhp); 952 zfs_handle_t *zhp; local 963 ((zhp = zfs_open(zlibh, vol, ZFS_TYPE_DATASET)) != NULL)) { 966 rv = zfs_prop_set(zhp, zfs_dumpdate_props[level], tbuf) 989 zfs_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/zinject/ |
| translate.c | 438 zpool_handle_t *zhp; local 446 if ((zhp = zpool_open(g_zfs, pool)) == NULL) 451 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL);
|
| zinject.c | 552 zfs_handle_t *zhp; local 934 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 937 if (zfs_unmount(zhp, NULL, 0) != 0) 946 ret = (zfs_mount(zhp, NULL, 0) != 0);
|
| /onnv/onnv-gate/usr/src/lib/libzfs/common/ |
| libzfs_config.c | 213 zpool_get_config(zpool_handle_t *zhp, nvlist_t **oldconfig) 216 *oldconfig = zhp->zpool_old_config; 217 return (zhp->zpool_config); 227 zpool_refresh_stats(zpool_handle_t *zhp, boolean_t *missing) 232 libzfs_handle_t *hdl = zhp->zpool_hdl; 235 (void) strcpy(zc.zc_name, zhp->zpool_name); 237 if (zhp->zpool_config_size == 0) 238 zhp->zpool_config_size = 1 << 16; 240 if (zcmd_alloc_dst_nvlist(hdl, &zc, zhp->zpool_config_size) != 0) 244 if (ioctl(zhp->zpool_hdl->libzfs_fd, ZFS_IOC_POOL_STATS 311 zpool_handle_t *zhp; local 353 zfs_handle_t *zhp; local [all...] |
| libzfs_import.c | 350 zpool_handle_t *zhp; local 353 if (zpool_open_silent(hdl, name, &zhp) != 0) 356 if (zhp == NULL) { 361 verify(nvlist_lookup_uint64(zhp->zpool_config, ZPOOL_CONFIG_POOL_GUID, 364 zpool_close(zhp); 1511 zpool_handle_t *zhp; local [all...] |
| libzfs_pool.c | 108 zpool_get_all_props(zpool_handle_t *zhp) 111 libzfs_handle_t *hdl = zhp->zpool_hdl; 113 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name)); 130 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { 141 zpool_props_refresh(zpool_handle_t *zhp) 145 old_props = zhp->zpool_props; 147 if (zpool_get_all_props(zhp) != 0) 155 zpool_get_prop_string(zpool_handle_t *zhp, zpool_prop_t prop, 163 nvl = zhp->zpool_props; 181 zpool_get_prop_int(zpool_handle_t *zhp, zpool_prop_t prop, zprop_source_t *src 429 zpool_handle_t *zhp; local 780 zpool_handle_t *zhp; local 822 zpool_handle_t *zhp; local 853 zpool_handle_t *zhp; local 1018 zfs_handle_t *zhp; local 1524 zpool_handle_t *zhp; local 3354 zpool_handle_t *zhp = NULL; local [all...] |
| libzfs_sendrecv.c | 542 static void send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv); 545 send_iterate_snap(zfs_handle_t *zhp, void *arg) 548 uint64_t guid = zhp->zfs_dmustats.dds_guid; 552 snapname = strrchr(zhp->zfs_name, '@')+1; 566 send_iterate_prop(zhp, nv); 570 zfs_close(zhp); 575 send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv) 579 while ((elem = nvlist_next_nvpair(zhp->zfs_props, elem)) != NULL) { 608 if (zhp->zfs_type == ZFS_TYPE_SNAPSHOT) 616 if ((strcmp(source, zhp->zfs_name) != 0) & 711 zfs_handle_t *zhp; local 1051 zfs_handle_t *zhp; local 1384 zfs_handle_t *zhp; local 1457 zfs_handle_t *zhp; local 1532 zfs_handle_t *zhp; local 2274 zfs_handle_t *zhp; local 2686 zfs_handle_t *zhp; local [all...] |
| libzfs_dataset.c | 226 process_user_props(zfs_handle_t *zhp, nvlist_t *props) 228 libzfs_handle_t *hdl = zhp->zfs_hdl; 255 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name) 257 libzfs_handle_t *hdl = zhp->zfs_hdl; 269 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len) 271 libzfs_handle_t *hdl = zhp->zfs_hdl; 286 zpool_handle(zfs_handle_t *zhp) 292 len = strcspn(zhp->zfs_name, "/@") + 1; 293 pool_name = zfs_alloc(zhp->zfs_hdl, len); 294 (void) strlcpy(pool_name, zhp->zfs_name, len) 470 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 497 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 519 zfs_handle_t *zhp; local 2543 zfs_handle_t *zhp; local 2616 zfs_handle_t *zhp; local 3154 zfs_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/zpool/ |
| zpool_iter.c | 75 add_pool(zpool_handle_t *zhp, void *data) 81 node->zn_handle = zhp; 85 zpool_expand_proplist(zhp, zlp->zl_proplist) != 0) { 86 zpool_close(zhp); 92 zpool_close(zhp); 132 zpool_handle_t *zhp; local 134 if (zhp = zpool_open_canfail(g_zfs, argv[i])) { 135 if (add_pool(zhp, zlp) != 0) 183 pool_list_remove(zpool_list_t *zlp, zpool_handle_t *zhp) 187 search.zn_handle = zhp; [all...] |
| zpool_main.c | 325 print_vdev_tree(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int indent, 347 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE); 348 print_vdev_tree(zhp, vname, child[c], indent + 2, 427 zpool_handle_t *zhp; local 464 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 467 if ((config = zpool_get_config(zhp, NULL)) == NULL) { 470 zpool_close(zhp); 475 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 478 zpool_close(zhp); 489 "configuration:\n"), zpool_get_name(zhp)); 526 zpool_handle_t *zhp; local 816 zpool_handle_t *zhp; local 886 zpool_handle_t *zhp; local 1487 zpool_handle_t *zhp; local 2531 zpool_handle_t *zhp; local 2657 zpool_handle_t *zhp; local 2707 zpool_handle_t *zhp; local 2785 zpool_handle_t *zhp; local 2846 zpool_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libzfs_jni/common/ |
| libzfs_jni_main.c | 336 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local 339 if (zhp != NULL) { 342 zhp, NULL, index, &p_vdev_id); 346 env, zhp, vdev_cfg, 349 zpool_close(zhp); 373 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local 377 if (zhp != NULL) { 380 zhp, NULL, index, NULL); 384 env, zhp, vdev_cfg, &p_vdev_id); 386 zpool_close(zhp); 410 zpool_handle_t *zhp = zpool_open_canfail(g_zfs, pool); local [all...] |
| libzfs_jni_dataset.c | 288 * zhp->zfs_name has the format 330 populate_DatasetBean(JNIEnv *env, zfs_handle_t *zhp, DatasetBean_t *bean) 336 env, (char *)zfs_get_name(zhp), bean); 342 properties = zjni_get_Dataset_properties(env, zhp); 355 populate_PoolBean(JNIEnv *env, zpool_handle_t *zphp, zfs_handle_t *zhp, 394 if (zhp == NULL) { 400 env, zhp, (FileSystemBean_t *)bean); 408 populate_FileSystemBean(JNIEnv *env, zfs_handle_t *zhp, FileSystemBean_t *bean) 410 return (populate_DatasetBean(env, zhp, (DatasetBean_t *)bean)); 414 populate_VolumeBean(JNIEnv *env, zfs_handle_t *zhp, VolumeBean_t *bean 614 zfs_handle_t *zhp = zfs_open(g_zfs, zpool_get_name(zphp), local 681 zfs_handle_t *zhp; local 760 zfs_handle_t *zhp = zfs_open(g_zfs, path, local 808 zfs_handle_t *zhp = zfs_open(g_zfs, name, typemask); local [all...] |
| /onnv/onnv-gate/usr/src/cmd/zfs/ |
| zfs_iter.c | 73 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) 80 zph = zfs_get_pool_handle(zhp); 89 zfs_callback(zfs_handle_t *zhp, void *data) 93 int include_snaps = zfs_include_snapshots(zhp, cb); 95 if ((zfs_get_type(zhp) & cb->cb_types) || 96 ((zfs_get_type(zhp) == ZFS_TYPE_SNAPSHOT) && include_snaps)) { 100 node->zn_handle = zhp; 107 zfs_prune_proplist(zhp, 110 if (zfs_expand_proplist(zhp, cb->cb_proplist, 131 if (zfs_get_type(zhp) == ZFS_TYPE_FILESYSTEM 417 zfs_handle_t *zhp; local [all...] |
| zfs_main.c | 486 zfs_handle_t *zhp = NULL; local 535 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 553 ret = zfs_clone(zhp, argv[1], props); 567 zfs_close(zhp); 573 if (zhp) 574 zfs_close(zhp); 599 zfs_handle_t *zhp = NULL; local 748 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL) 755 canmount = zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT); 764 if (zfs_mount(zhp, NULL, 0) != 0) 940 zfs_handle_t *zhp; local 1814 zfs_handle_t *zhp; local 2132 zfs_handle_t *zhp; local 2212 zfs_handle_t *zhp; local 2338 zfs_handle_t *zhp, *snap; local 2570 zfs_handle_t *zhp; local 2797 zfs_handle_t *zhp; local 3399 zfs_handle_t *zhp; local 3471 zfs_handle_t *zhp; local 3591 zfs_handle_t *zhp; local 3940 zfs_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
| rpc.rquotad.c | 278 zfs_handle_t *zhp = NULL; local 285 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) { 291 if (_zfs_prop_get_userquota_int(zhp, propname, &userquota) != 0) { 292 _zfs_close(zhp); 297 if (_zfs_prop_get_userquota_int(zhp, propname, &userused) != 0) { 298 _zfs_close(zhp); 305 _zfs_close(zhp);
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
| zfs_retire.c | 77 find_pool(zpool_handle_t *zhp, void *data) 82 zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL)) { 83 cbp->cb_zhp = zhp; 87 zpool_close(zhp); 145 zpool_handle_t *zhp; local 155 zhp = cb.cb_zhp; 156 config = zpool_get_config(zhp, NULL); 159 zpool_close(zhp); 166 zpool_close(zhp); 171 return (zhp); 357 zpool_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fs.d/ufs/quota/ |
| quota.c | 873 zfs_handle_t *zhp = NULL; local 880 if ((zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 884 if (_zfs_prop_get_userquota_int(zhp, propname, &userquota) != 0) { 885 _zfs_close(zhp); 890 if (_zfs_prop_get_userquota_int(zhp, propname, &userused) != 0) { 891 _zfs_close(zhp); 898 _zfs_close(zhp);
|
| /onnv/onnv-gate/usr/src/cmd/ndmpd/tlm/ |
| tlm_lib.c | 724 zfs_handle_t *zhp; local 734 (zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == NULL) { 739 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, PATH_MAX, NULL, 741 zfs_close(zhp); 746 zfs_close(zhp); 1218 zfs_handle_t *zhp; local 1234 if ((zhp = zfs_open(zlibh, chk_name, ZFS_TYPE_SNAPSHOT)) == NULL) { 1240 (void) zfs_destroy(zhp, B_FALSE); 1241 zfs_close(zhp); 1254 zfs_handle_t *zhp; local 1329 zfs_handle_t *zhp; local 1361 zfs_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/zoneadm/ |
| zfs.c | 77 check_zvol(zfs_handle_t *zhp, void *unused) 81 if (zfs_get_type(zhp) == ZFS_TYPE_VOLUME) { 88 zfs_get_name(zhp)); 91 ret = zfs_iter_children(zhp, check_zvol, NULL); 94 zfs_close(zhp); 104 match_mountpoint(zfs_handle_t *zhp, void *data) 110 if (zfs_get_type(zhp) != ZFS_TYPE_FILESYSTEM) { 111 zfs_close(zhp); 116 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTED, mp, sizeof (mp), NULL, NULL, 118 zfs_close(zhp); 390 zfs_handle_t *zhp; local 474 zfs_handle_t *zhp; local 548 zfs_handle_t *zhp; local 911 zfs_handle_t *zhp; local 986 zfs_handle_t *zhp; local 1046 zfs_handle_t *zhp; local 1174 zfs_handle_t *zhp; local 1208 zfs_handle_t *zhp; local 1271 zfs_handle_t *zhp; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libshare/common/ |
| libshare_zfs.c | 89 zfs_handle_t **zhp = impl_handle->zfs_list; local 97 zfs_close(zhp[i]); 116 * Note that as this function is called, we close all zhp handles that 123 get_one_filesystem(zfs_handle_t *zhp, void *data) 126 zfs_type_t type = zfs_get_type(zhp); 132 zfs_iter_filesystems(zhp, get_one_filesystem, data) != 0) { 133 zfs_close(zhp); 141 zfs_close(zhp); 157 zfs_close(zhp); 169 cbp->cb_handles[cbp->cb_used++] = zhp; [all...] |
| /onnv/onnv-gate/usr/src/cmd/halt/ |
| halt.c | 680 zfs_handle_t *zhp = NULL; local 691 if ((zhp = zfs_open(g_zfs, arg, 696 if (mount(zfs_get_name(zhp), mountpoint, MS_DATA|MS_OPTIONSTR|MS_RDONLY, 705 if (zhp != NULL) 706 zfs_close(zhp); 722 zfs_handle_t *zhp = NULL; local 766 if ((zhp = zfs_open(g_zfs, mntsp, 805 if (zhp != NULL) 806 zfs_close(zhp); [all...] |
| /onnv/onnv-gate/usr/src/cmd/fs.d/ |
| df.c | 1246 zfs_handle_t *zhp; local 1251 zhp = _zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET); 1252 if (zhp == NULL) 1257 quota = _zfs_prop_get_int(zhp, ZFS_PROP_REFQUOTA); 1263 this_quota = _zfs_prop_get_int(zhp, ZFS_PROP_QUOTA); 1271 size = _zfs_prop_get_int(zhp, ZFS_PROP_USED) + 1272 _zfs_prop_get_int(zhp, ZFS_PROP_AVAILABLE); 1277 _zfs_close(zhp); [all...] |
| /onnv/onnv-gate/usr/src/cmd/zoneadmd/ |
| vplat.c | 3081 zfs_handle_t *zhp; local 3188 zfs_handle_t *zhp; local [all...] |