HomeFreeBSD

Fix block cloning between unencrypted and encrypted datasets

Description

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

Details

Provenance
mmAuthored on Oct 31 2023, 8:49 PM
GitHub <noreply@github.com>Committed on Oct 31 2023, 8:49 PM
Parents
rGcba99a046e34: Add all read-only compatible zpool features to grub2 compatibility
Branches
Unknown
Tags
Unknown