Lines Matching refs:zfs_hdl
310 libzfs_crypto_set_key(zhp->zfs_hdl, key, keylen);
316 zhp->zfs_hdl->libzfs_crypt.zc_clone_newkey = B_TRUE;
834 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
836 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
842 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
844 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
849 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
851 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
862 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_INHERIT, &zc);
868 ret = key_hdl_to_zc(zhp->zfs_hdl, zhp, keysource, crypt, &zc,
876 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_LOAD, &zc);
880 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
882 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
884 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
886 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
889 zfs_error_aux(zhp->zfs_hdl,
891 } else if (zhp->zfs_hdl->libzfs_desc_active == 0) {
892 zfs_error_aux(zhp->zfs_hdl, strerror(errno));
894 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
928 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
930 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
934 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
936 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
949 zfs_error_aux(zhp->zfs_hdl,
952 return (zfs_error(zhp->zfs_hdl,
961 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_UNLOAD, &zc);
964 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
967 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
982 if (zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_NEW, &zc) != 0) {
985 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1005 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1012 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1015 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1017 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1028 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1034 zhp->zfs_hdl->libzfs_crypt.zc_is_key_change = B_TRUE;
1045 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1058 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1064 ret = key_hdl_to_zc(zhp->zfs_hdl, zhp, keysource, crypt, &zc,
1067 if (zcmd_write_src_nvlist(zhp->zfs_hdl, &zc, props) != 0)
1072 ret = zfs_ioctl(zhp->zfs_hdl, ZFS_IOC_CRYPTO_KEY_CHANGE, &zc);
1075 return (zfs_standard_error(zhp->zfs_hdl, NULL,
1083 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1108 (zhp->zfs_hdl->libzfs_crypt.zc_is_key_change == B_TRUE)) {
1486 pzhp = make_dataset_handle(zhp->zfs_hdl, nparent);
1488 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1490 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1503 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1506 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1517 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1519 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1532 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1534 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));
1545 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
1547 return (zfs_error(zhp->zfs_hdl, EZFS_KEYERR, errbuf));