config + job: forbid non-verlapping receiver root_fs

refs #136
refs #140
This commit is contained in:
Christian Schwarz
2019-03-20 23:01:24 +01:00
parent 3e71542c78
commit 7756c9a55c
8 changed files with 122 additions and 4 deletions
+9
View File
@@ -103,6 +103,15 @@ func (s *PassiveSide) Status() *Status {
return &Status{Type: s.mode.Type()} // FIXME PassiveStatus
}
func (j *PassiveSide) OwnedDatasetSubtreeRoot() (rfs *zfs.DatasetPath, ok bool) {
sink, ok := j.mode.(*modeSink)
if !ok {
_ = j.mode.(*modeSource) // make sure we didn't introduce a new job type
return nil, false
}
return sink.rootDataset.Copy(), true
}
func (*PassiveSide) RegisterMetrics(registerer prometheus.Registerer) {}
func (j *PassiveSide) Run(ctx context.Context) {