Project

General

Profile

Bug #6393

zfs receive a full send as a clone

Added by Matthew Ahrens almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2015-10-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

We would like to be able to receive a full (non-incremental) send stream as a clone of an arbitrary snapshot. To save space, the receive should not create new blocks if they would be identical to what's in the specified origin.


Related issues

Precedes illumos gate - Feature #6536: zfs send: want a way to disable setting of DRR_FLAG_FREERECORDSClosed2015-10-262015-10-26

Actions

History

#1

Updated by Matthew Ahrens almost 4 years ago

This allows to do a full (non-incremental send) and receive it as a clone of an existing dataset. It can leverage nopwrite to share blocks with the origin. This can be used to change the relationship of datasets on the target. For example, maybe on the source you have:

A ---- B ---- C

And you have sent to the target a full of B, and the incremental B->C:

B ---- C

You later realize that you want to have A on the target. You will have to do a full send of A, but nopwrite can save you space on the target if you receive it as a clone of B, assuming that A and B have some blocks in common:

B ---- C
\
A

#2

Updated by Electric Monk almost 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 68ecb2ec930c4b0f00acaf8e0abb2b19c4b8b76f

commit  68ecb2ec930c4b0f00acaf8e0abb2b19c4b8b76f
Author: Paul Dagnelie <pcd@delphix.com>
Date:   2015-11-16T22:19:13.000Z

    6393 zfs receive a full send as a clone
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Prakash Surya <prakash.surya@delphix.com>
    Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

#3

Updated by Andrew Stormont over 3 years ago

  • Precedes Feature #6536: zfs send: want a way to disable setting of DRR_FLAG_FREERECORDS added

Also available in: Atom PDF