]> git.proxmox.com Git - mirror_zfs.git/commit
Fixes in head_errlog feature with encryption
authorGeorge Amanakis <gamanakis@gmail.com>
Mon, 8 May 2023 20:35:03 +0000 (22:35 +0200)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 20:35:03 +0000 (13:35 -0700)
commit4eca03faaf6a1c05d739c738e3d5c0df2931da98
treea0a65f26b22df9f7860b433a78928359da33eb45
parent3095ca91c261756c509d0afb4422027753e68c90
Fixes in head_errlog feature with encryption

For the head_errlog feature use dsl_dataset_hold_obj_flags() instead of
dsl_dataset_hold_obj() in order to enable access to the encryption keys
(if loaded). This enables reporting of errors in encrypted filesystems
which are not mounted but have their keys loaded.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14837
man/man7/zpool-features.7
module/zfs/spa_errlog.c
tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_corrective.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_005_pos.ksh