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

View File

@ -5,16 +5,18 @@ import (
"context"
"encoding/json"
"fmt"
"io"
"net"
"net/http"
"time"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/zrepl/zrepl/daemon/job"
"github.com/zrepl/zrepl/daemon/nethelpers"
"github.com/zrepl/zrepl/logger"
"github.com/zrepl/zrepl/version"
"io"
"net"
"net/http"
"time"
"github.com/zrepl/zrepl/zfs"
)
type controlJob struct {
@ -38,6 +40,8 @@ func (j *controlJob) Name() string { return jobNameControl }
func (j *controlJob) Status() *job.Status { return &job.Status{Type: job.TypeInternal} }
func (j *controlJob) OwnedDatasetSubtreeRoot() (p *zfs.DatasetPath, ok bool) { return nil, false }
var promControl struct {
requestBegin *prometheus.CounterVec
requestFinished *prometheus.HistogramVec