Home
last modified time | relevance | path

Searched refs:zhp (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/cmd/zoneadm/
H A Dzfs.c88 zfs_close(zhp); in match_mountpoint()
121 zfs_close(zhp); in match_mountpoint()
146 zfs_close(zhp); in match_mountpoint()
241 zfs_close(zhp); in get_snap_max()
259 zfs_close(zhp); in get_snap_max()
399 zfs_close(zhp); in clone_snap()
508 zfs_close(zhp); in path2name()
523 zfs_close(zhp); in has_dependent()
556 zfs_close(zhp); in snap2path()
644 zfs_close(zhp); in find_clone()
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_dataset.c462 if ((zhp->zpool_hdl = zpool_handle(zhp)) == NULL) in make_dataset_handle_common()
481 free(zhp); in make_dataset_handle()
526 zhp->zpool_hdl = zpool_handle(zhp); in make_dataset_simple_handle_zc()
632 if ((zhp->zpool_hdl = zpool_handle(zhp)) == NULL) { in make_bookmark_handle()
658 dp->zhp = zhp; in zfs_open_bookmarks_cb()
743 zhp = cb_data.zhp; in zfs_open()
771 free(zhp); in zfs_close()
1839 zfs_prop_get_int(zhp, ZFS_PROP_ZONED), zhp, zhp->zpool_hdl, in zfs_prop_set_list()
2139 return (zhp->zfs_props == zhp->zfs_recvd_props); in zfs_is_recvd_props_mode()
2146 zhp->zfs_props = zhp->zfs_recvd_props; in zfs_set_recvd_props_mode()
[all …]
H A Dlibzfs_iter.c242 search.zn_handle = zhp; in zfs_sort_snaps()
257 node->zn_handle = zhp; in zfs_sort_snaps()
336 zfs_close(zhp); in snapspec_cb()
447 zfs_handle_t *zhp; member
480 zfs_close(zhp); in iter_dependents_cb()
483 zfs_error_aux(zhp->zfs_hdl, in iter_dependents_cb()
486 zfs_get_name(zhp)); in iter_dependents_cb()
487 err = zfs_error(zhp->zfs_hdl, in iter_dependents_cb()
492 zfs_close(zhp); in iter_dependents_cb()
498 isf.zhp = zhp; in iter_dependents_cb()
[all …]
H A Dlibzfs_mount.c299 return (is_mounted(zhp->zfs_hdl, zfs_get_name(zhp), where)); in zfs_is_mounted()
454 zhp->zfs_name)); in zfs_mount()
548 if (ZFS_IS_VOLUME(zhp)) in zfs_is_shared()
920 zfs_get_name(zhp)); in zfs_share_proto()
1165 zfs_close(zhp); in zfs_iter_cb()
1170 zfs_close(zhp); in zfs_iter_cb()
1176 zfs_close(zhp); in zfs_iter_cb()
1187 zfs_close(zhp); in zfs_iter_cb()
1193 zfs_close(zhp); in zfs_iter_cb()
1387 if (zfs_share(zhp) != 0) in zfs_share_one()
[all …]
H A Dlibzfs_crypto.c707 const char *fsname = (zhp) ? zfs_get_name(zhp) : NULL; in populate_create_encryption_params_nvlists()
1075 zfs_close(zhp); in load_keys_cb()
1093 if (zhp == NULL) { in zfs_crypto_attempt_load_keys()
1111 zfs_close(zhp); in zfs_crypto_attempt_load_keys()
1115 if (zhp != NULL) in zfs_crypto_attempt_load_keys()
1116 zfs_close(zhp); in zfs_crypto_attempt_load_keys()
1162 zfs_get_name(zhp)); in zfs_crypto_load_key()
1322 zfs_get_name(zhp)); in zfs_crypto_unload_key()
1400 new_props = zfs_valid_proplist(zhp->zfs_hdl, zhp->zfs_type, props, in zfs_crypto_verify_rewrap_nvlist()
1401 zfs_prop_get_int(zhp, ZFS_PROP_ZONED), NULL, zhp->zpool_hdl, in zfs_crypto_verify_rewrap_nvlist()
[all …]
H A Dlibzfs_config.c223 *oldconfig = zhp->zpool_old_config; in zpool_get_config()
224 return (zhp->zpool_config); in zpool_get_config()
275 if (zhp->zpool_config_size == 0) in zpool_refresh_stats()
276 zhp->zpool_config_size = 1 << 16; in zpool_refresh_stats()
314 if (zhp->zpool_config != NULL) { in zpool_refresh_stats()
317 zhp->zpool_old_config = zhp->zpool_config; in zpool_refresh_stats()
320 zhp->zpool_config = config; in zpool_refresh_stats()
392 zpool_handle_t *zhp; in zpool_iter() local
416 if (zhp == NULL) in zpool_iter()
437 zfs_handle_t *zhp; in zfs_iter_root() local
[all …]
H A Dlibzfs_pool.c155 if (zhp->zpool_props == NULL && zpool_get_all_props(zhp)) { in zpool_get_prop_int()
299 if (zhp->zpool_props == NULL && zpool_get_all_props(zhp) && in zpool_get_prop()
1072 return (zhp); in zpool_open_canfail()
1102 *ret = zhp; in zpool_open_silent()
1125 return (zhp); in zpool_open()
1137 free(zhp); in zpool_close()
1561 zhp->zpool_name, zhp->zpool_name); in zpool_export_common()
3323 char *mpath = zpool_vdev_name(zhp->zpool_hdl, zhp, in find_vdev_entry()
3327 char *spath = zpool_vdev_name(zhp->zpool_hdl, zhp, in find_vdev_entry()
4608 if (zhp) { in zpool_label_disk()
[all …]
H A Dlibzfs_sendrecv.c672 zfs_close(zhp); in send_iterate_snap()
701 zfs_close(zhp); in send_iterate_snap()
960 zfs_close(zhp); in send_iterate_fs()
975 if (zhp == NULL) in gather_nvlist()
1312 zfs_close(zhp); in dump_snapshot()
1317 zfs_close(zhp); in dump_snapshot()
1416 zfs_close(zhp); in dump_snapshot()
1823 zfs_close(zhp); in zfs_send_resume()
1936 err = gather_nvlist(zhp->zfs_hdl, zhp->zfs_name, in zfs_send()
2489 zfs_close(zhp); in recv_destroy()
[all …]
H A Dlibzfs_diff.c61 zfs_handle_t *zhp; member
509 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in make_temp_snapshot()
615 zfs_handle_t *zhp; in get_snapshot_names() local
622 while (zhp != NULL) { in get_snapshot_names()
625 (void) zfs_close(zhp); in get_snapshot_names()
626 zhp = NULL; in get_snapshot_names()
632 (void) zfs_close(zhp); in get_snapshot_names()
636 if (zhp == NULL) { in get_snapshot_names()
642 (void) zfs_close(zhp); in get_snapshot_names()
734 di->zhp = zhp; in setup_differ_info()
[all …]
H A Dlibzfs_changelist.c423 change_one(zfs_handle_t *zhp, void *data) in change_one() argument
446 zfs_close(zhp); in change_one()
459 zfs_close(zhp); in change_one()
469 if ((cn = zfs_alloc(zfs_get_handle(zhp), in change_one()
471 zfs_close(zhp); in change_one()
475 cn->cn_handle = zhp; in change_one()
477 zfs_is_mounted(zhp, NULL); in change_one()
478 cn->cn_shared = zfs_is_shared(zhp); in change_one()
511 zfs_close(zhp); in change_one()
671 if ((temp = zfs_open(zhp->zfs_hdl, zfs_get_name(zhp), in changelist_gather()
[all …]
H A Dlibzfs_import.c75 zpool_handle_t *zhp; in pool_active() local
78 if (zpool_open_silent(hdl, name, &zhp) != 0) in pool_active()
81 if (zhp == NULL) { in pool_active()
89 zpool_close(zhp); in pool_active()
290 find_aux(zpool_handle_t *zhp, void *data) in find_aux() argument
307 cbp->cb_zhp = zhp; in find_aux()
313 zpool_close(zhp); in find_aux()
330 zpool_handle_t *zhp; in zpool_in_use() local
375 zpool_close(zhp); in zpool_in_use()
425 if (zhp != NULL) in zpool_in_use()
[all …]
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_mount.c300 ZFS_CLOSE(zhp); in _be_mount()
314 ZFS_CLOSE(zhp); in _be_mount()
367 ZFS_CLOSE(zhp); in _be_mount()
395 ZFS_CLOSE(zhp); in _be_mount()
491 ZFS_CLOSE(zhp); in _be_unmount()
516 ZFS_CLOSE(zhp); in _be_unmount()
538 ZFS_CLOSE(zhp); in _be_unmount()
547 ZFS_CLOSE(zhp); in _be_unmount()
564 ZFS_CLOSE(zhp); in _be_unmount()
862 ZFS_CLOSE(zhp); in be_get_legacy_fs()
[all …]
H A Dbe_create.c522 ZFS_CLOSE(zhp); in be_destroy()
576 ZFS_CLOSE(zhp); in be_destroy()
952 zhp = NULL; in be_copy()
1020 zhp = NULL; in be_copy()
1047 zhp = NULL; in be_copy()
1072 zhp = NULL; in be_copy()
1075 zhp = NULL; in be_copy()
1235 ZFS_CLOSE(zhp); in be_copy()
1384 zfs_close(zhp); in be_has_snapshot_callback()
1437 ZFS_CLOSE(zhp); in be_set_uuid()
[all …]
H A Dbe_zones.c116 zfs_handle_t *zhp; in be_find_active_zone_root() local
181 ZFS_CLOSE(zhp); in be_find_active_zone_root()
207 zfs_handle_t *zhp = NULL; in be_find_mounted_zone_root() local
236 if ((zret = zfs_iter_filesystems(zhp, in be_find_mounted_zone_root()
258 ZFS_CLOSE(zhp); in be_find_mounted_zone_root()
360 zfs_handle_t *zhp = NULL; in be_zone_get_parent_uuid() local
403 ZFS_CLOSE(zhp); in be_zone_get_parent_uuid()
422 zfs_handle_t *zhp = NULL; in be_zone_set_parent_uuid() local
444 ZFS_CLOSE(zhp); in be_zone_set_parent_uuid()
543 if (be_zone_get_active(zhp)) { in be_find_active_zone_root_callback()
[all …]
H A Dbe_snapshot.c354 zhp = NULL; in be_rollback()
372 zhp = NULL; in be_rollback()
378 zhp = NULL; in be_rollback()
616 ZFS_CLOSE(zhp); in _be_create_snapshot()
717 ZFS_CLOSE(zhp); in _be_destroy_snapshot()
754 ZFS_CLOSE(zhp); in be_rollback_check_callback()
761 ZFS_CLOSE(zhp); in be_rollback_check_callback()
765 ZFS_CLOSE(zhp); in be_rollback_check_callback()
799 ZFS_CLOSE(zhp); in be_rollback_callback()
810 ZFS_CLOSE(zhp); in be_rollback_callback()
[all …]
H A Dbe_activate.c397 ZFS_CLOSE(zhp); in _be_activate()
403 ZFS_CLOSE(zhp); in _be_activate()
413 ZFS_CLOSE(zhp); in _be_activate()
416 ZFS_CLOSE(zhp); in _be_activate()
435 ZFS_CLOSE(zhp); in _be_activate()
615 ZFS_CLOSE(zhp); in set_canmount()
768 ZFS_CLOSE(zhp); in be_get_grub_vers()
1379 ZFS_CLOSE(zhp); in be_do_installboot()
1449 ZFS_CLOSE(zhp); in be_do_installboot()
1597 ZFS_CLOSE(zhp); in be_promote_zone_ds()
[all …]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_dataset.c396 if (zhp == NULL) { in populate_PoolBean()
621 if (zhp != NULL) in zjni_create_add_Pool()
622 zfs_close(zhp); in zjni_create_add_Pool()
656 zfs_close(zhp); in zjni_create_add_Dataset()
670 zfs_close(zhp); in zjni_create_add_Dataset()
683 zfs_handle_t *zhp; in zjni_get_Datasets_below() local
696 if (zhp != NULL) { in zjni_get_Datasets_below()
705 zfs_close(zhp); in zjni_get_Datasets_below()
764 if (zhp != NULL) { in zjni_get_Datasets_dependents()
824 if (zhp != NULL) { in zjni_get_Dataset()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c78 zfs_close(zhp); in ndmp_has_backup()
83 zfs_close(zhp); in ndmp_has_backup()
104 zfs_handle_t *zhp; in ndmp_has_backup_snapshot() local
120 zfs_close(zhp); in ndmp_has_backup_snapshot()
192 zfs_handle_t *zhp; in snapshot_hold() local
203 zfs_close(zhp); in snapshot_hold()
210 zfs_close(zhp); in snapshot_hold()
213 zfs_close(zhp); in snapshot_hold()
221 zfs_handle_t *zhp; in snapshot_release() local
239 zfs_close(zhp); in snapshot_release()
[all …]
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c127 uap->uap_zhp = zhp; in zfs_unavail_pool()
130 zpool_close(zhp); in zfs_unavail_pool()
227 if (zpool_is_bootable(zhp)) in zfs_process_add()
381 zpool_close(zhp); in zfs_iter_pool()
606 zpool_close(zhp); in zfsdle_vdev_online()
609 zpool_close(zhp); in zfsdle_vdev_online()
675 zpool_handle_t *zhp; in zfs_deliver_update() local
689 if (zhp == NULL) in zfs_deliver_update()
696 zpool_close(zhp); in zfs_deliver_update()
703 zpool_close(zhp); in zfs_deliver_update()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c85 cbp->cb_zhp = zhp; in find_pool()
89 zpool_close(zhp); in find_pool()
155 zpool_handle_t *zhp; in find_by_guid() local
165 zhp = cb.cb_zhp; in find_by_guid()
169 zpool_close(zhp); in find_by_guid()
176 zpool_close(zhp); in find_by_guid()
181 return (zhp); in find_by_guid()
194 zpool_close(zhp); in search_pool()
200 cbp->cb_zhp = zhp; in search_pool()
204 zpool_close(zhp); in search_pool()
[all …]
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c703 if (zhp == NULL) in zfs_mount_and_share()
711 zfs_close(zhp); in zfs_mount_and_share()
736 zfs_close(zhp); in zfs_mount_and_share()
832 zfs_close(zhp); in zfs_do_clone()
838 if (zhp) in zfs_do_clone()
1189 zfs_close(zhp); in destroy_check_dependent()
1247 zfs_close(zhp); in destroy_callback()
1289 zfs_close(zhp); in destroy_print_cb()
1333 zfs_close(zhp); in snapshot_to_nvl_cb()
1359 zfs_close(zhp); in gather_snapshots()
[all …]
H A Dzfs_iter.c83 zph = zfs_get_pool_handle(zhp); in zfs_include_snapshots()
92 zfs_callback(zfs_handle_t *zhp, void *data) in zfs_callback() argument
99 if ((zfs_get_type(zhp) & cb->cb_types) || in zfs_callback()
104 node->zn_handle = zhp; in zfs_callback()
111 zfs_prune_proplist(zhp, in zfs_callback()
140 (void) zfs_iter_snapshots(zhp, in zfs_callback()
150 zfs_close(zhp); in zfs_callback()
443 zfs_handle_t *zhp; in zfs_for_each() local
463 zhp = zfs_open(g_zfs, argv[i], argtype); in zfs_for_each()
465 if (zhp != NULL) in zfs_for_each()
[all …]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_iter.c78 add_pool(zpool_handle_t *zhp, void *data) in add_pool() argument
84 node->zn_handle = zhp; in add_pool()
89 zpool_close(zhp); in add_pool()
95 zpool_close(zhp); in add_pool()
135 zpool_handle_t *zhp; in pool_list_get() local
137 if ((zhp = zpool_open_canfail(g_zfs, argv[i])) != in pool_list_get()
139 if (add_pool(zhp, zlp) != 0) in pool_list_get()
191 search.zn_handle = zhp; in pool_list_remove()
286 ret |= for_each_vdev_cb(zhp, child[c], func, in for_each_vdev_cb()
297 ret |= func(zhp, nv, data); in for_each_vdev_cb()
[all …]
H A Dzpool_main.c758 zpool_close(zhp); in zpool_do_add()
786 zpool_close(zhp); in zpool_do_add()
827 zpool_close(zhp); in zpool_do_add()
1541 zpool_close(zhp); in zpool_do_destroy()
1706 zpool_close(zhp); in find_spare()
2653 zpool_close(zhp); in do_import()
2687 zpool_close(zhp); in name_or_guid_exists()
2757 zpool_close(zhp); in zpool_do_checkpoint()
6466 if (zhp == NULL) in zpool_do_trim()
6565 if (zhp == NULL) in zpool_do_initialize()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c322 smbd_vss_iterate_count(zfs_handle_t *zhp, void *data) in smbd_vss_iterate_count() argument
328 zfs_close(zhp); in smbd_vss_iterate_count()
332 zfs_close(zhp); in smbd_vss_iterate_count()
351 zfs_prop_get_int(zhp, ZFS_PROP_CREATION); in smbd_vss_iterate_get_uint64_date()
353 zfs_close(zhp); in smbd_vss_iterate_get_uint64_date()
357 zfs_close(zhp); in smbd_vss_iterate_get_uint64_date()
367 smbd_vss_iterate_map_gmttoken(zfs_handle_t *zhp, void *data) in smbd_vss_iterate_map_gmttoken() argument
372 time = (time_t)zfs_prop_get_int(zhp, ZFS_PROP_CREATION); in smbd_vss_iterate_map_gmttoken()
374 (void) strlcpy(vss_data->mg_snapname, zfs_get_name(zhp), in smbd_vss_iterate_map_gmttoken()
378 zfs_close(zhp); in smbd_vss_iterate_map_gmttoken()
[all …]

123