Lines Matching refs:zpool_hdl

80 	libzfs_handle_t *hdl = zhp->zpool_hdl;  in zpool_get_all_props()
912 return (no_memory(zhp->zpool_hdl)); in zpool_set_prop()
916 return (no_memory(zhp->zpool_hdl)); in zpool_set_prop()
920 if ((realprops = zpool_valid_proplist(zhp->zpool_hdl, in zpool_set_prop()
934 zcmd_write_src_nvlist(zhp->zpool_hdl, &zc, nvl); in zpool_set_prop()
936 ret = zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_POOL_SET_PROPS, &zc); in zpool_set_prop()
942 (void) zpool_standard_error(zhp->zpool_hdl, errno, errbuf); in zpool_set_prop()
953 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_expand_proplist()
1126 entry = zfs_alloc(zhp->zpool_hdl, in vdev_expand_proplist()
1129 entry->pl_user_prop = zfs_strdup(zhp->zpool_hdl, in vdev_expand_proplist()
1323 zhp->zpool_hdl = hdl; in zpool_open_canfail()
1354 zhp->zpool_hdl = hdl; in zpool_open_silent()
1659 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_destroy()
1700 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_checkpoint()
1721 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_discard_checkpoint()
1742 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_prefetch()
1771 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_add()
1887 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_POOL_EXPORT, &zc) != 0) { in zpool_export_common()
1890 zfs_error_aux(zhp->zpool_hdl, dgettext(TEXT_DOMAIN, in zpool_export_common()
1895 return (zfs_error_fmt(zhp->zpool_hdl, EZFS_ACTIVE_SPARE, in zpool_export_common()
1899 return (zpool_standard_error_fmt(zhp->zpool_hdl, errno, in zpool_export_common()
2502 zfs_error_aux(zhp->zpool_hdl, dgettext(TEXT_DOMAIN, in zpool_initialize_impl()
2506 (void) zpool_standard_error(zhp->zpool_hdl, err, in zpool_initialize_impl()
2520 (void) zpool_standard_error_fmt(zhp->zpool_hdl, in zpool_initialize_impl()
2541 (void) zfs_error_fmt(zhp->zpool_hdl, vd_error, in zpool_initialize_impl()
2591 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_collect_leaves()
2654 (void) zpool_standard_error_fmt(zhp->zpool_hdl, in zpool_trim_wait()
2704 (void) zfs_error_fmt(zhp->zpool_hdl, vd_error, in check_trim_errs()
2709 (void) zfs_error_aux(zhp->zpool_hdl, dgettext(TEXT_DOMAIN, in check_trim_errs()
2711 (void) (zfs_error(zhp->zpool_hdl, EZFS_TRIM_NOTSUP, in check_trim_errs()
2758 zpool_standard_error(zhp->zpool_hdl, err, errbuf); in zpool_trim()
2790 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_scan_range()
3324 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_online()
3412 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_offline()
3466 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_remove_wanted()
3494 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_fault()
3530 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_set_state()
3614 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_attach()
3836 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_detach()
3901 char *mpath = zpool_vdev_name(zhp->zpool_hdl, zhp, in find_vdev_entry()
3905 char *spath = zpool_vdev_name(zhp->zpool_hdl, zhp, in find_vdev_entry()
3936 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_split()
4175 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_remove()
4251 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_remove_cancel()
4272 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_indirect_size()
4306 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_clear()
4371 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_clear()
4399 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_set_guid()
4628 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_errlog()
4642 buf = zfs_alloc(zhp->zpool_hdl, in zpool_get_errlog()
4646 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_ERROR_LOG, in zpool_get_errlog()
4710 return (no_memory(zhp->zpool_hdl)); in zpool_get_errlog()
4720 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_upgrade()
4772 libzfs_handle_t *hdl = zhp->zpool_hdl; in get_history()
4815 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_history()
5007 if (zfs_ioctl(zhp->zpool_hdl, in zpool_obj_to_path_impl()
5017 mounted = !always_unmounted && is_mounted(zhp->zpool_hdl, dsname, in zpool_obj_to_path_impl()
5023 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_OBJ_TO_PATH, in zpool_obj_to_path_impl()
5063 (void) zpool_standard_error_fmt(zhp->zpool_hdl, ENOENT, in zpool_wait()
5092 (void) zpool_standard_error_fmt(zhp->zpool_hdl, error, in zpool_wait_status()
5105 (void) zpool_standard_error_fmt(zhp->zpool_hdl, error, in zpool_set_bootenv()
5122 (void) zpool_standard_error_fmt(zhp->zpool_hdl, error, in zpool_get_bootenv()
5383 return (zfs_error(zhp->zpool_hdl, EZFS_POOLUNAVAIL, errbuf)); in zpool_vdev_guid()
5392 return (zfs_error(zhp->zpool_hdl, EZFS_NODEVICE, errbuf)); in zpool_vdev_guid()
5593 return (no_memory(zhp->zpool_hdl)); in zpool_get_vdev_prop()
5595 return (no_memory(zhp->zpool_hdl)); in zpool_get_vdev_prop()
5612 return (no_memory(zhp->zpool_hdl)); in zpool_get_vdev_prop()
5627 (void) zpool_standard_error(zhp->zpool_hdl, ret, errbuf); in zpool_get_vdev_prop()
5652 return (no_memory(zhp->zpool_hdl)); in zpool_get_all_vdev_props()
5665 (void) zpool_standard_error(zhp->zpool_hdl, errno, errbuf); in zpool_get_all_vdev_props()
5691 return (no_memory(zhp->zpool_hdl)); in zpool_set_vdev_prop()
5693 return (no_memory(zhp->zpool_hdl)); in zpool_set_vdev_prop()
5699 return (no_memory(zhp->zpool_hdl)); in zpool_set_vdev_prop()
5709 if ((realprops = zpool_valid_proplist(zhp->zpool_hdl, in zpool_set_vdev_prop()
5729 zfs_error_aux(zhp->zpool_hdl, dgettext(TEXT_DOMAIN, in zpool_set_vdev_prop()
5731 (void) zfs_error(zhp->zpool_hdl, EZFS_PROPTYPE, errbuf); in zpool_set_vdev_prop()
5733 (void) zpool_standard_error(zhp->zpool_hdl, errno, in zpool_set_vdev_prop()
5750 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_ddt_prune()