]> granicus.if.org Git - zfs/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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Oct 2017 22:30:51 +0000 (15:30 -0700)
commit48fbb9ddbf2281911560dfbc2821aa8b74127315
tree750c769c63de3dda2f0bf15d0446c052f1c67374
parentaee1dd4d983c64db3c3155290d48f05243e85709
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