| /f-stack/freebsd/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_util.c | 1023 free(hdl); 1028 free(hdl); 1038 free(hdl); 1106 free(hdl); 1492 if (hdl) 1509 if (hdl) 1530 if (hdl) 1545 if (hdl) 1569 if (hdl) 1582 if (hdl) [all …]
|
| H A D | libzfs_config.c | 81 if (hdl->libzfs_ns_avl) { in namespace_clear() 93 hdl->libzfs_ns_avl = NULL; in namespace_clear() 124 return (no_memory(hdl)); in namespace_reload() 126 if ((hdl->libzfs_ns_avl = uu_avl_create(hdl->libzfs_ns_avlpool, in namespace_reload() 128 return (no_memory(hdl)); in namespace_reload() 203 return (no_memory(hdl)); in namespace_reload() 401 if (!hdl->libzfs_pool_iter && namespace_reload(hdl) != 0) in zpool_iter() 404 hdl->libzfs_pool_iter++; in zpool_iter() 412 hdl->libzfs_pool_iter--; in zpool_iter() 420 hdl->libzfs_pool_iter--; in zpool_iter() [all …]
|
| H A D | libzfs_pool.c | 467 (void) no_memory(hdl); in zpool_valid_proplist() 517 (void) no_memory(hdl); in zpool_valid_proplist() 677 zfs_error_aux(hdl, in zpool_valid_proplist() 967 if (hdl != NULL) in zpool_name_valid() 968 zfs_error_aux(hdl, in zpool_name_valid() 975 if (hdl != NULL) { in zpool_name_valid() 978 zfs_error_aux(hdl, in zpool_name_valid() 983 zfs_error_aux(hdl, in zpool_name_valid() 1064 zhp->zpool_hdl = hdl; in zpool_open_canfail() 1096 zhp->zpool_hdl = hdl; in zpool_open_silent() [all …]
|
| H A D | libzfs_dataset.c | 113 if (hdl != NULL) in zfs_validate_name() 120 if (hdl != NULL) in zfs_validate_name() 127 if (hdl != NULL) in zfs_validate_name() 134 if (hdl != NULL) in zfs_validate_name() 141 if (hdl != NULL) in zfs_validate_name() 148 if (hdl != NULL) { in zfs_validate_name() 172 zfs_error_aux(hdl, in zfs_validate_name() 487 zhp->zfs_hdl = hdl; in make_dataset_handle() 514 zhp->zfs_hdl = hdl; in make_dataset_handle_zc() 1168 zfs_error_aux(hdl, in zfs_valid_proplist() [all …]
|
| H A D | libzfs_sendrecv.c | 720 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() local 779 libzfs_handle_t *hdl = zhp->zfs_hdl; in dump_ioctl() local 2620 buf = zfs_alloc(hdl, len); in recv_read_nvlist() 3341 error = recv_destroy(hdl, name, in recv_incremental_replication() 3365 (void) zfs_ioctl(hdl, in recv_incremental_replication() 3764 (void) recv_read(hdl, fd, buf, in recv_skip() 3801 (void) recv_read(hdl, fd, buf, in recv_skip() 3824 (void) recv_read(hdl, fd, buf, in recv_skip() 4283 if (guid_to_name(hdl, destsnap, in zfs_receive_one() 4435 if ((zhp = zfs_open(hdl, name, in zfs_receive_one() [all …]
|
| H A D | libzfs_import.c | 53 if (zpool_open_silent(hdl, name, &zhp) != 0) in pool_active() 71 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() argument 77 if (zcmd_write_conf_nvlist(hdl, &zc, config) != 0) in refresh_config() 87 while ((err = zfs_ioctl(hdl, ZFS_IOC_POOL_TRYIMPORT, in refresh_config() 89 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { in refresh_config() 100 if (zcmd_read_dst_nvlist(hdl, &zc, &nvl) != 0) { in refresh_config() 316 (void) no_memory(hdl); in zpool_in_use() 366 if (pool_active(hdl, name, guid, &isactive) != 0) { in zpool_in_use() 426 if (zpool_iter(hdl, find_aux, &cb) == 1) { in zpool_in_use() 442 if (zpool_iter(hdl, find_aux, &cb) == 1) { in zpool_in_use() [all …]
|
| H A D | libzfs_mount.c | 388 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount_at() local 530 zfs_error_aux(hdl, strerror(rc)); in zfs_mount_at() 570 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unmount() local 587 mntpt = zfs_strdup(hdl, mountpoint); in zfs_unmount() 890 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unshare_proto() local 896 mntpt = zfs_strdup(hdl, mountpoint); in zfs_unshare_proto() 909 if (unshare_one(hdl, zhp->zfs_name, in zfs_unshare_proto() 1232 mnt_param->mnt_hdl = hdl; in zfs_dispatch_mount() 1491 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_disable_datasets() local 1526 if ((mountpoints = zfs_alloc(hdl, in zpool_disable_datasets() [all …]
|
| H A D | libzfs_crypto.c | 116 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 128 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 201 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 208 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 217 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 224 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 242 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 249 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 358 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_interactive() 396 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_interactive() [all …]
|
| H A D | libzfs_diff.c | 472 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in make_temp_snapshot() local 487 return (zfs_error(hdl, EZFS_DIFF, di->errbuf)); in make_temp_snapshot() 496 di->tmpsnap = zfs_strdup(hdl, zc.zc_value); in make_temp_snapshot() 518 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in get_snapshot_names() local 542 return (zfs_error(hdl, EZFS_INVALIDNAME, in get_snapshot_names() 550 di->fromsnap = zfs_strdup(hdl, fromsnap); in get_snapshot_names() 551 di->ds = zfs_strdup(hdl, fromsnap); in get_snapshot_names() 585 zhp = zfs_open(hdl, di->ds, ZFS_TYPE_FILESYSTEM); in get_snapshot_names() 610 di->fromsnap = zfs_strdup(hdl, fromsnap); in get_snapshot_names() 612 di->tosnap = zfs_strdup(hdl, tosnap); in get_snapshot_names() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zed/agents/ |
| H A D | zfs_diagnosis.c | 311 zfs_purge_cases(fmd_hdl_t *hdl) in zfs_purge_cases() argument 415 zfs_case_serialize(hdl, zcp); in zfs_case_solve() 468 zfs_purge_cases(hdl); in zfs_fm_recv() 694 fmd_serd_reset(hdl, in zfs_fm_recv() 801 fmd_serd_create(hdl, in zfs_fm_recv() 807 if (fmd_serd_record(hdl, in zfs_fm_recv() 809 zfs_case_solve(hdl, zcp, in zfs_fm_recv() 819 zfs_case_solve(hdl, zcp, in zfs_fm_recv() 824 zfs_case_solve(hdl, zcp, in zfs_fm_recv() 893 zfs_fm_gc(fmd_hdl_t *hdl) in zfs_fm_gc() argument [all …]
|
| H A D | fmd_api.c | 100 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register() 114 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register() 120 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument 122 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister() 143 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister() 172 fmd_hdl_getspecific(fmd_hdl_t *hdl) in fmd_hdl_getspecific() argument 277 cp->ci_mod = hdl; in fmd_case_open() 320 ops->fmdo_close(hdl, cp); in fmd_case_close() 423 nvl = fmd_nvl_alloc(hdl, FMD_SLEEP); in fmd_case_add_suspect() 561 fmd_hdl_t *hdl = ftp->ft_hdl; in _timer_notify() local [all …]
|
| H A D | zfs_retire.c | 210 replacement = fmd_nvl_alloc(hdl, FMD_SLEEP); in replace_with_spare() 378 zfs_vdev_repair(hdl, nvl); in zfs_retire_recv() 382 zfs_vdev_repair(hdl, nvl); in zfs_retire_recv() 386 zfs_retire_clear_data(hdl, zdp); in zfs_retire_recv() 419 } else if (fmd_nvl_class_match(hdl, fault, in zfs_retire_recv() 422 } else if (fmd_nvl_class_match(hdl, fault, in zfs_retire_recv() 514 fmd_case_uuresolved(hdl, uuid); in zfs_retire_recv() 535 _zfs_retire_init(fmd_hdl_t *hdl) in _zfs_retire_init() argument 551 fmd_hdl_setspecific(hdl, zdp); in _zfs_retire_init() 555 _zfs_retire_fini(fmd_hdl_t *hdl) in _zfs_retire_fini() argument [all …]
|
| H A D | zfs_agents.c | 362 fmd_hdl_t *hdl; in zfs_agent_init() local 371 _zfs_diagnosis_init(hdl); in zfs_agent_init() 372 if (!fmd_module_initialized(hdl)) in zfs_agent_init() 375 hdl = fmd_module_hdl("zfs-retire"); in zfs_agent_init() 376 _zfs_retire_init(hdl); in zfs_agent_init() 377 if (!fmd_module_initialized(hdl)) in zfs_agent_init() 393 fmd_hdl_t *hdl; in zfs_agent_fini() local 412 _zfs_retire_fini(hdl); in zfs_agent_fini() 413 fmd_hdl_unregister(hdl); in zfs_agent_fini() 416 _zfs_diagnosis_fini(hdl); in zfs_agent_fini() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | sa.c | 789 sa_idx_tab_rele(hdl->sa_os, hdl->sa_bonus_tab); in sa_build_layouts() 795 sa_idx_tab_rele(hdl->sa_os, hdl->sa_spill_tab); in sa_build_layouts() 1357 sa_idx_tab_rele(hdl->sa_os, hdl->sa_spill_tab); in sa_spill_rele() 1374 sa_idx_tab_rele(hdl->sa_os, hdl->sa_bonus_tab); in sa_handle_destroy() 1377 sa_idx_tab_rele(hdl->sa_os, hdl->sa_spill_tab); in sa_handle_destroy() 1467 ASSERT(hdl); in sa_lookup_impl() 1486 ASSERT(hdl); in sa_lookup_locked() 1514 ASSERT(hdl); in sa_lookup_uio() 2002 ASSERT(hdl); in sa_bulk_update_impl() 2026 sa_idx_tab_rele(hdl->sa_os, hdl->sa_spill_tab); in sa_bulk_update_impl() [all …]
|
| /f-stack/freebsd/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_import.c | 79 (void) vsnprintf(hdl->lpc_desc, sizeof (hdl->lpc_desc), fmt, ap); in zutil_error_aux() 80 hdl->lpc_desc_active = B_TRUE; in zutil_error_aux() 93 if (hdl->lpc_desc_active) in zutil_verror() 96 hdl->lpc_desc[0] = '\0'; in zutil_verror() 98 if (hdl->lpc_printerr) { in zutil_verror() 100 error = hdl->lpc_desc; in zutil_verror() 140 (void) zutil_no_memory(hdl); in zutil_alloc() 151 (void) zutil_no_memory(hdl); in zutil_strdup() 414 int error = hdl->lpc_ops->pco_pool_active(hdl->lpc_lib_handle, name, in zutil_pool_active() 425 return (hdl->lpc_ops->pco_refresh_config(hdl->lpc_lib_handle, in zutil_refresh_config() [all …]
|
| H A D | zutil_import.h | 51 int label_paths(libpc_handle_t *hdl, nvlist_t *label, char **path, 53 int zpool_find_import_blkid(libpc_handle_t *hdl, pthread_mutex_t *lock, 56 void * zutil_alloc(libpc_handle_t *hdl, size_t size); 57 char *zutil_strdup(libpc_handle_t *hdl, const char *str);
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfsbootenv/ |
| H A D | lzbe_device.c | 30 libzfs_handle_t *hdl; in lzbe_set_boot_device() local 40 if ((hdl = libzfs_init()) == NULL) in lzbe_set_boot_device() 43 zphdl = zpool_open(hdl, pool); in lzbe_set_boot_device() 45 libzfs_fini(hdl); in lzbe_set_boot_device() 102 fprintf(stderr, "%s\n", libzfs_error_description(hdl)); in lzbe_set_boot_device() 106 libzfs_fini(hdl); in lzbe_set_boot_device() 116 libzfs_handle_t *hdl; in lzbe_get_boot_device() local 125 if ((hdl = libzfs_init()) == NULL) in lzbe_get_boot_device() 128 zphdl = zpool_open(hdl, pool); in lzbe_get_boot_device() 130 libzfs_fini(hdl); in lzbe_get_boot_device() [all …]
|
| H A D | lzbe_pair.c | 29 libzfs_handle_t *hdl; in lzbe_nvlist_get() local 37 if ((hdl = libzfs_init()) == NULL) { in lzbe_nvlist_get() 41 zphdl = zpool_open(hdl, pool); in lzbe_nvlist_get() 43 libzfs_fini(hdl); in lzbe_nvlist_get() 69 libzfs_fini(hdl); in lzbe_nvlist_get() 76 libzfs_handle_t *hdl; in lzbe_nvlist_set() local 85 if ((hdl = libzfs_init()) == NULL) { in lzbe_nvlist_set() 89 zphdl = zpool_open(hdl, pool); in lzbe_nvlist_set() 91 libzfs_fini(hdl); in lzbe_nvlist_set() 123 libzfs_fini(hdl); in lzbe_nvlist_set()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/ |
| H A D | libzfs_pool_os.c | 66 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 68 return (zfs_error(hdl, EZFS_OPENFAILED, msg)); in zpool_relabel_disk() 84 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 86 return (zfs_error(hdl, EZFS_NOCAP, msg)); in zpool_relabel_disk() 249 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() 251 return (zfs_error(hdl, EZFS_OPENFAILED, errbuf)); in zpool_label_disk() 260 (void) no_memory(hdl); in zpool_label_disk() 263 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() 266 return (zfs_error(hdl, EZFS_NOCAP, errbuf)); in zpool_label_disk() 314 return (zfs_error(hdl, EZFS_LABELFAILED, errbuf)); in zpool_label_disk() [all …]
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/os/freebsd/ |
| H A D | libzfs_compat.c | 253 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_jail() local 269 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() 271 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_jail() 273 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() 275 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_jail() 277 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() 279 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_jail() 292 if ((ret = zfs_ioctl(hdl, cmd, &zc)) != 0) in zfs_jail() 293 zfs_standard_error(hdl, errno, errbuf); in zfs_jail() 313 error = zcmd_write_src_nvlist(hdl, &zc, args); in zpool_nextboot() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zstream/ |
| H A D | zstream_token.c | 60 libzfs_handle_t *hdl = libzfs_init(); in zstream_do_token() local 63 zfs_send_resume_token_to_nvlist(hdl, resume_token); in zstream_do_token() 68 libzfs_error_description(hdl)); in zstream_do_token() 69 libzfs_fini(hdl); in zstream_do_token() 76 libzfs_fini(hdl); in zstream_do_token()
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | sa_impl.h | 222 #define SA_GET_DB(hdl, type) \ argument 223 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill) 225 #define SA_GET_HDR(hdl, type) \ argument 226 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \ 229 #define SA_IDX_TAB_GET(hdl, type) \ argument 230 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab) 257 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \ argument
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_events/ |
| H A D | ereports.c | 153 libzfs_handle_t *hdl; in main() local 156 hdl = libzfs_init(); in main() 157 if (hdl == NULL) { in main() 164 libzfs_fini(hdl); in main() 168 ereports_dump(hdl, fd); in main() 171 libzfs_fini(hdl); in main()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/ |
| H A D | zutil_import_os.c | 181 zpool_find_import_blkid(libpc_handle_t *hdl, pthread_mutex_t *lock, in zpool_find_import_blkid() argument 201 *slice_cache = zutil_alloc(hdl, sizeof (avl_tree_t)); in zpool_find_import_blkid() 209 slice = zutil_alloc(hdl, sizeof (rdsk_node_t)); in zpool_find_import_blkid() 210 slice->rn_name = zutil_strdup(hdl, path); in zpool_find_import_blkid() 214 slice->rn_hdl = hdl; in zpool_find_import_blkid()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_import_os.c | 105 libpc_handle_t *hdl = rn->rn_hdl; in zpool_open_func() local 121 dupname = zutil_strdup(hdl, rn->rn_name); in zpool_open_func() 144 hdl->lpc_open_access_error = B_TRUE; in zpool_open_func() 212 slice = zutil_alloc(hdl, sizeof (rdsk_node_t)); in zpool_open_func() 213 slice->rn_name = zutil_strdup(hdl, path); in zpool_open_func() 216 slice->rn_hdl = hdl; in zpool_open_func() 232 slice = zutil_alloc(hdl, sizeof (rdsk_node_t)); in zpool_open_func() 242 slice->rn_hdl = hdl; in zpool_open_func() 357 *slice_cache = zutil_alloc(hdl, sizeof (avl_tree_t)); in zpool_find_import_blkid() 362 slice = zutil_alloc(hdl, sizeof (rdsk_node_t)); in zpool_find_import_blkid() [all …]
|