From b544fe4123167e15bb0687e3918e8569a55fed3e Mon Sep 17 00:00:00 2001 From: Fabian Grünbichler Date: Fri, 29 Sep 2017 12:00:29 +0200 Subject: Free objects when receiving full stream as clone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Brian Behlendorf Signed-off-by: Fabian Grünbichler Closes #5699 Closes #6507 Closes #6616 --- include/sys/dmu_send.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sys/dmu_send.h b/include/sys/dmu_send.h index e9bef8bdd..5cf67a6ab 100644 --- a/include/sys/dmu_send.h +++ b/include/sys/dmu_send.h @@ -61,6 +61,7 @@ typedef struct dmu_recv_cookie { boolean_t drc_byteswap; boolean_t drc_force; boolean_t drc_resumable; + boolean_t drc_clone; struct avl_tree *drc_guid_to_ds_map; zio_cksum_t drc_cksum; uint64_t drc_newsnapobj; -- cgit v1.2.3