HomeFreeBSD

zfs: cherry-pick change from master

Description

zfs: cherry-pick change from master

#15465 763ca47f Fix block cloning between unencrypted and encrypted

datasets

Fixes a kernel panic when block cloning is enabled and system is trying
to read data from a file copied using copy_file_range(2), e.g. with cp(1)
from an unencrypted dataset into an encrypted dataset on the same ZFS pool.
As the file has not been encrypted, to fix the filesystem inconsistency
and to avoid future panics it must be deleted (metadata is readable).

Approved by: re (gjb)
Obtained from: OpenZFS
OpenZFS commit: 763ca47fa81808be62ab5e02357e896233f24abc

(cherry picked from commit c5eb93ef57f4905f7aea9566ab45be1a75ada150)

Details

Provenance
mmAuthored on Oct 31 2023, 8:49 PM
Parents
rGd9e6e99a8525: cam/ata: Postpone removal of two compat sysctls until 15
Branches
Unknown
Tags
Unknown