diff options
author | pablofsf <[email protected]> | 2021-04-11 21:05:35 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-11 12:05:35 -0700 |
commit | 099fa7e475d30b53ea64b2327fcaee4ba9741690 (patch) | |
tree | e382a3b05a55d600701a38911d5beb34faca61ac /include | |
parent | 2ec0b0dd71b7dfb61ebcd14ab69ad3413fff4dbb (diff) |
Allow zfs to send replication streams with missing snapshots
A tentative implementation and discussion was done in #5285.
According to it a send --skip-missing|-s flag has been added.
In a replication stream, when there are snapshots missing in
the hierarchy, if -s is provided print a warning and ignore
dataset (and its children) instead of throwing an error
Reviewed-by: Paul Dagnelie <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Pablo Correa Gómez <[email protected]>
Closes #11710
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h index 5f0bc03be..e8e771382 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -666,6 +666,9 @@ typedef struct sendflags { /* recursive send (ie, -R) */ boolean_t replicate; + /* for recursive send, skip sending missing snapshots */ + boolean_t skipmissing; + /* for incrementals, do all intermediate snapshots */ boolean_t doall; |