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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 6 2023, 6:40 PM
Parents
rG95785196f26e: Tag 2.2.0
Branches
Unknown
Tags
Unknown