zrepl/zfs
Christian Schwarz 975fdee217 replication & pruning: ditch replicated-property, use bookmark as cursor instead
A bookmark with a well-known name is used to track which version was
last successfully received by the receiver.
The createtxg that can be retrieved from the bookmark using `zfs get` is
used to set the Replicated attribute of each snap on the sender:
If the snap's CreateTXG > the cursor's, it is not yet replicated,
otherwise it has been.

There is an optional config option to change the behvior to
`CreateTXG >= the cursor's`, and the implementation defaults to that.

The reason: While things work just fine with `CreateTXG > the cursor's`,
ZFS does not provide size estimates in a `zfs send` dry run
(see acd2418).
However, to enable the use case of keeping the snapshot only around for
the replication, the config flag exists.
2018-09-05 19:51:06 -07:00
..
test_helpers Implement DatasetMapping + basic ZFS list functionality. 2017-04-26 17:39:16 +02:00
conflict_string.go make generate: stringer was updated and now uses strconv instead of fmt 2018-04-01 15:30:04 +02:00
datasetpath_visitor_test.go Make zfs.DatasetPath json.Marshaler and json.Unmarshaler 2017-08-06 16:22:15 +02:00
datasetpath_visitor.go Make zfs.DatasetPath json.Marshaler and json.Unmarshaler 2017-08-06 16:22:15 +02:00
diff_test.go zfs: fix/update tests for diffs for createtxg & guid 2017-07-09 00:08:50 +02:00
diff.go gofmt 2018-08-25 21:30:25 +02:00
mapping.go gofmt 2018-08-25 21:30:25 +02:00
prometheus.go zfs: prometheus metrics 2018-04-05 22:12:25 +02:00
replication_history.go replication & pruning: ditch replicated-property, use bookmark as cursor instead 2018-09-05 19:51:06 -07:00
resume_token_test.go zfs: disable resume token test because it doesn't work in docker 2018-09-04 17:31:46 -07:00
resume_token.go make go vet happy 2018-08-26 14:51:20 +02:00
versions.go fix: at least two snapshots were needed to start replication 2018-08-30 19:20:18 +02:00
zfs_test.go zfs: skip test with ZFS_BINARY mock (doesn't work in parallel) 2018-09-04 17:02:02 -07:00
zfs.go replication & pruning: ditch replicated-property, use bookmark as cursor instead 2018-09-05 19:51:06 -07:00