zrepl/zfs
Christian Schwarz d50e553ebb handle changes to placeholder state correctly
We assumed that `zfs recv -F FS` would basically replace FS inplace, leaving its children untouched.
That is in fact not the case, it only works if `zfs send -R` is set, which we don't do.

Thus, implement the required functionality manually.

This solves a `zfs recv` error that would occur when a filesystem previously created as placeholder on the receiving side becomes a non-placeholder filesystem (likely due to config change on the sending side):

  zfs send pool1/foo@1 | zfs recv -F pool1/bar
  cannot receive new filesystem stream:
  destination has snapshots (eg. pool1/bar)
  must destroy them to overwrite it
2019-03-13 18:46:04 +01:00
..
test_helpers Implement DatasetMapping + basic ZFS list functionality. 2017-04-26 17:39:16 +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
mapping.go rpc rewrite: control RPCs using gRPC + separate RPC for data transfer 2019-03-13 13:53:48 +01:00
placeholder.go handle changes to placeholder state correctly 2019-03-13 18:46:04 +01:00
prometheus.go bring back prometheus metrics, with new metrics for replication state machine 2018-09-07 22:22:34 -07:00
replication_history.go zfs: ability to specify sources for zfsGet 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 bring back prometheus metrics, with new metrics for replication state machine 2018-09-07 22:22:34 -07:00
zfs_debug.go rpc rewrite: control RPCs using gRPC + separate RPC for data transfer 2019-03-13 13:53:48 +01:00
zfs_pipe_linux.go rpc rewrite: control RPCs using gRPC + separate RPC for data transfer 2019-03-13 13:53:48 +01:00
zfs_pipe.go rpc rewrite: control RPCs using gRPC + separate RPC for data transfer 2019-03-13 13:53:48 +01:00
zfs_test.go rpc rewrite: control RPCs using gRPC + separate RPC for data transfer 2019-03-13 13:53:48 +01:00
zfs.go handle changes to placeholder state correctly 2019-03-13 18:46:04 +01:00