]> git.proxmox.com Git - mirror_zfs.git/commit
Fix block cloning between unencrypted and encrypted datasets
authorMartin Matuška <mm@FreeBSD.org>
Tue, 31 Oct 2023 20:49:41 +0000 (21:49 +0100)
committerGitHub <noreply@github.com>
Tue, 31 Oct 2023 20:49:41 +0000 (13:49 -0700)
commit763ca47fa81808be62ab5e02357e896233f24abc
tree8fa883005885a8c0118be457e310476c46f93c32
parentcba99a046e346dc3f3170294de597495143546de
Fix block cloning between unencrypted and encrypted datasets

Block cloning from an encrypted dataset into an unencrypted dataset
and vice versa is not possible. The current code did allow cloning
unencrypted files into an encrypted dataset causing a panic when
these were accessed. Block cloning between encrypted and encrypted
is currently supported on the same filesystem only.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Rob N <robn@despairlabs.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes #15464
Closes #15465
module/zfs/zfs_vnops.c