]> git.proxmox.com Git - mirror_zfs.git/commit
Allow receiver to override encryption properties in case of replication
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Wed, 14 Dec 2022 01:30:46 +0000 (06:30 +0500)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 01:30:46 +0000 (17:30 -0800)
commit9be34ec99ec7bb518ad508851b0e60c86bfbbd24
treee1110146420ecf476350a80e0b968600f438a9e8
parent3236c0b891d0a09475bef8b6186ac8beed792fe9
Allow receiver to override encryption properties in case of replication

Currently, the receiver fails to override the encryption
property for the plain replicated dataset with the error:
"cannot receive incremental stream: encryption property
'encryption' cannot be set for incremental streams.". The
problem is resolved by allowing the receiver to override
the encryption property for plain replicated send.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #14253
Closes #13533
lib/libzfs/libzfs_sendrecv.c
tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_to_encrypted.ksh