Lines Matching refs:zfs_hdl

219 	libzfs_handle_t *hdl = zhp->zfs_hdl;
248 libzfs_handle_t *hdl = zhp->zfs_hdl;
262 libzfs_handle_t *hdl = zhp->zfs_hdl;
284 pool_name = zfs_alloc(zhp->zfs_hdl, len);
314 libzfs_handle_t *hdl = zhp->zfs_hdl;
338 libzfs_handle_t *hdl = zhp->zfs_hdl;
359 err = zcmd_read_dst_nvlist(zhp->zfs_hdl, &zc, &recvdprops);
377 if (zcmd_read_dst_nvlist(zhp->zfs_hdl, zc, &allprops) != 0) {
405 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
473 zhp->zfs_hdl = hdl;
506 zhp->zfs_hdl = hdl;
1987 (void) no_memory(zhp->zfs_hdl);
2103 libzfs_handle_t *hdl = zhp->zfs_hdl;
2136 zpd = zfs_zprop(zhp->zfs_hdl, prop);
2292 libzfs_handle_t *hdl = zhp->zfs_hdl;
2311 if (zfs_zprop_lookup(zhp->zfs_hdl, propname, ZPROP_PROPERTY,
2342 if (zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_INHERIT_PROP, &zc) != 0) {
2369 zpd = zfs_zprop(zhp->zfs_hdl, prop);
2492 if ((ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_INHERIT_PROP, &zc)) != 0) {
2610 libzfs_handle_t *hdl = zhp->zfs_hdl;
2617 ret = zfs_prop_nvlist_add(zhp->zfs_hdl, nvl, propname, value, source,
2644 libzfs_handle_t *hdl = zhp->zfs_hdl;
2652 logstr = zhp->zfs_hdl->libzfs_log_str;
2656 zhp->zfs_hdl->libzfs_log_str = NULL;
2671 zhp->zfs_hdl->libzfs_log_str = logstr;
2758 libzfs_handle_t *hdl = zhp->zfs_hdl;
2954 zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
2957 if (zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_OBJSET_ZPLPROPS, &zc)) {
2961 if (zcmd_read_dst_nvlist(zhp->zfs_hdl, &zc, &zplprops) != 0 ||
2990 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
2992 return (zfs_error(zhp->zfs_hdl, EZFS_BADPROP,
3229 zpd = zfs_zprop(zhp->zfs_hdl, prop);
3698 zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
3702 if (zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_OBJSET_ZPLPROPS,
3707 err = zcmd_read_dst_nvlist(zhp->zfs_hdl, &zc,
4122 return (zfs_error_fmt(zhp->zfs_hdl, EZFS_PROPTYPE,
4319 err = ioctl(zhp->zfs_hdl->libzfs_fd, ZFS_IOC_USERSPACE_ONE, &zc);
4418 rc = ioctl(zhp->zfs_hdl->libzfs_fd, ioc, zc);
4424 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) {
4440 rc = zfs_standard_error_fmt(zhp->zfs_hdl, NULL,
4462 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
4471 if ((nzhp = make_dataset_handle_zc(zhp->zfs_hdl,
4499 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
4504 if ((nzhp = make_dataset_handle_zc(zhp->zfs_hdl,
4531 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc, 0) != 0)
4536 if ((nzhp = make_share_handle_zc(zhp->zfs_hdl,
5081 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
5085 return (zfs_error(zhp->zfs_hdl, EZFS_INVALIDNAME,
5101 if (zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_DESTROY, &zc) != 0) {
5102 return (zfs_standard_error_fmt(zhp->zfs_hdl, NULL,
5135 szhp = make_dataset_handle(zhp->zfs_hdl, name);
5163 return (zfs_standard_error_fmt(zhp->zfs_hdl, NULL,
5173 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_DESTROY_SNAPS, &zc);
5182 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
5184 return (zfs_error(zhp->zfs_hdl, EZFS_EXISTS, errbuf));
5187 return (zfs_standard_error(zhp->zfs_hdl, NULL,
5205 libzfs_handle_t *hdl = zhp->zfs_hdl;
5249 if (zfs_crypto_zckey(zhp->zfs_hdl, ZFS_CRYPTO_CLONE, props, &zc) != 0) {
5261 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CREATE, &zc);
5278 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
5280 return (zfs_error(zhp->zfs_hdl, EZFS_NOENT, errbuf));
5283 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
5285 return (zfs_error(zhp->zfs_hdl, EZFS_CROSSTARGET,
5289 return (zfs_standard_error(zhp->zfs_hdl, NULL,
5303 libzfs_handle_t *hdl = zhp->zfs_hdl;
5401 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_SNAPSHOT, &zc);
5452 logstr = zhp->zfs_hdl->libzfs_log_str;
5453 zhp->zfs_hdl->libzfs_log_str = NULL;
5455 zhp->zfs_hdl->libzfs_log_str = logstr;
5540 if ((err = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_ROLLBACK, &zc)) != 0) {
5541 (void) zfs_standard_error_fmt(zhp->zfs_hdl, NULL,
5555 (zhp = make_dataset_handle(zhp->zfs_hdl, zhp->zfs_name))) {
5586 if (get_dependents(zhp->zfs_hdl, allowrecursion, zhp->zfs_name,
5594 if ((child = make_handle_impl(zhp->zfs_hdl,
5623 libzfs_handle_t *hdl = zhp->zfs_hdl;
5796 parentname = zfs_strdup(zhp->zfs_hdl, zhp->zfs_name);
5803 zhrp = zfs_open(zhp->zfs_hdl, parentname, ZFS_TYPE_DATASET);
5848 (void) zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf);
5857 (void) zfs_error(zhp->zfs_hdl, EZFS_OPENFAILED, errbuf);
5863 if ((ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_RENAME, &zc)) != 0) {
5877 (void) zfs_standard_error(zhp->zfs_hdl, NULL,
5942 libzfs_handle_t *hdl = zhp->zfs_hdl;
6255 size = sizeof (uint8_t) * zfs_zprop_count(zhp->zfs_hdl, ZPROP_PROPERTY);
6256 zhp->zfs_props_table = zfs_alloc(zhp->zfs_hdl, size);
6566 error = ioctl(zhp->zfs_hdl->libzfs_fd,
6590 libzfs_handle_t *hdl = zhp->zfs_hdl;
6649 libzfs_handle_t *hdl = zhp->zfs_hdl;