]> git.proxmox.com Git - mirror_zfs.git/commit
Check encrypted dataset + embedded recv earlier
authorTom Caputi <tcaputi@datto.com>
Mon, 18 Jun 2018 19:47:12 +0000 (15:47 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Aug 2018 16:49:19 +0000 (09:49 -0700)
commit1fff937a4c9d7b745540387d232c5ab2ba856fea
treed5806c401cc4d014e9a853f81196ff5c5103a044
parentd9c460a0b659c044d4397b7405712f2c9450d3c4
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
include/sys/dsl_crypt.h
module/zfs/dmu_objset.c
module/zfs/dmu_send.c
module/zfs/dsl_crypt.c
module/zfs/spa.c