]> git.proxmox.com Git - mirror_zfs.git/commit
Free objects when receiving full stream as clone
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 29 Sep 2017 10:00:29 +0000 (12:00 +0200)
committerTony Hutter <hutter2@llnl.gov>
Mon, 16 Oct 2017 17:57:55 +0000 (10:57 -0700)
commitb544fe4123167e15bb0687e3918e8569a55fed3e
tree7bdd452a7831494f0374df90ce31da558b1dfeca
parent926c6ec4530ed57edada2a1e9528b367b0a58c07
Free objects when receiving full stream as clone

All objects after the last written or freed object are not supposed to
exist after receiving the stream.  Free them accordingly, as if a
freeobjects record for them had been included in the stream.

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Closes #5699
Closes #6507
Closes #6616
include/sys/dmu_send.h
module/zfs/dmu_send.c