zrepl/daemon/job
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
..
reset move wakeup subcommand into signal subcommand and add reset subcommand 2018-10-12 20:50:56 +02:00
wakeup client/signal: Revert "add signal 'snapshot', rename existing signal 'wakeup' to 'replication'" 2021-03-25 22:26:17 +01:00
active_test.go Reformat all files with make format. 2020-08-31 23:57:45 +02:00
active.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00
activesidestate_enumer.go build: drop go Dep, switch to modules, support Go 1.13 2019-09-14 13:36:44 +02:00
build_jobs_sendrecvoptions.go fix encrypt-on-receive with placeholders 2021-12-18 15:12:47 +01:00
build_jobs_test.go Add --skip-cert-check flag to zrepl configcheck to prevent checking cert files 2022-07-08 20:18:41 +02:00
build_jobs.go Allow same root_fs for different jobs: sinks and so on (#752) 2023-11-01 00:12:54 +01:00
job.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
passive.go refactor snapper & support cron-based snapshotting 2022-09-25 19:23:44 +02:00
snapjob.go run go1.19 gofmt and make adjustments as needed 2022-10-24 22:22:41 +02:00