aboutsummaryrefslogtreecommitdiffstats
path: root/include/libzfs.h
diff options
context:
space:
mode:
authorpablofsf <[email protected]>2021-04-11 21:05:35 +0200
committerBrian Behlendorf <[email protected]>2021-04-14 13:19:50 -0700
commit07d64c07e06e558219f645b304d891bed9ff652f (patch)
tree462e399ee5c23da0273ed546e3c3912d02df16d7 /include/libzfs.h
parentf8631d0fe065c2211fa3527d4b9f5e04725382fb (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/libzfs.h')
-rw-r--r--include/libzfs.h3
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;