HomeFreeBSD

Check encrypted dataset + embedded recv earlier

Description

Check encrypted dataset + embedded recv earlier

This patch fixes a bug where attempting to receive a send stream
with embedded data into an encrypted dataset would not cleanup
that dataset when the error was reached. The check was moved into
dmu_recv_begin_check(), preventing this issue.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7650

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Jun 18 2018, 7:47 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 15 2018, 4:49 PM
Parents
rGd9c460a0b659: Added encryption support for zfs recv -o / -x
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG1fff937a4c9d: Check encrypted dataset + embedded recv earlier (authored by Tom Caputi <tcaputi@datto.com>).Aug 15 2018, 4:49 PM