zrepl/daemon
Denis Shaposhnikov 27012e5623
Allow same root_fs for different jobs: sinks and so on (#752)
Because some jobs add client identity to root_fs and other jobs don't do
that,
we can't reliable detect overlapping of filesystems. And and the same
time we
need an ability to use equal or overlapped root_fs for different jobs.
For
instance see this config:

```
  - name: "zdisk"
    type: "sink"
    root_fs: "zdisk/zrepl"
    serve:
      type: "local"
      listener_name: "zdisk"
```
and
```
  - name: "remote-to-zdisk"
    type: "pull"
    connect:
      type: "tls"
    root_fs: "zdisk/zrepl/remote"
```

As you can see, two jobs have overlapped root_fs, but actually datasets
are not
overlapped, because job `zdisk` save everything under
`zdisk/zrepl/localhost`,
because it adds client identity. So they actually use two different
filesystems:
`zdisk/zrepl/localhost` and `zdisk/zrepl/remote`. And we can't detect
this
situation during config check. So let's just remove this check, because
it's
admin's duty to configure correct root_fs's.

---------

Co-authored-by: Christian Schwarz <me@cschwarz.com>
2023-11-01 00:12:54 +01:00
..
filters metric to detect filesystems rules that don't match any local dataset (#653) 2023-05-02 22:13:52 +02:00
hooks run go1.19 gofmt and make adjustments as needed 2022-10-24 22:22:41 +02:00
job Allow same root_fs for different jobs: sinks and so on (#752) 2023-11-01 00:12:54 +01:00
logging run go1.19 gofmt and make adjustments as needed 2022-10-24 22:22:41 +02:00
nethelpers format source tree using goimports 2019-03-22 19:41:12 +01:00
pruner zrepl status: hide progress bar once all filesystems reach terminal state (#674) 2023-05-02 19:28:56 +02:00
snapper snapper: fix delayed snapshots caused by system suspend/resume 2022-10-27 00:19:06 +02:00
control.go daemon/control: make http server {Read,Write}Timeout envconst-configurable 2021-12-18 15:14:33 +01:00
daemon.go Add --skip-cert-check flag to zrepl configcheck to prevent checking cert files 2022-07-08 20:18:41 +02:00
main.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
pprof.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
prometheus.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00