zrepl/cmd
Christian Schwarz 72d288567e mappings: fix aliasing bug with '<' wildcards
In contrast to any 'something<' mapping, a '<' mapping cannot be unique
Thus, '<' mappings are thus just an append to target, which is exactly
what we get when trimming empty prefix ''.

Otherwise, given mapping

{ "<": "storage/backups/app-srv" }

Before (clearly a conflict)
zroot     => storage/backups/app-srv
storage   => storage/backups/app-srv
After:
zroot     => storage/backups/app-srv/zroot
storage   => storage/backups/app-srv/storage

However, mapping directly with subtree wildcard is still possible, just
not with the root wildcard

{
    "<"              "storage/backups/app-srv"
    "zroot/var/db<": "storage/db_replication/app-srv"
}

fixes #22
2017-10-05 20:10:05 +02:00
..
sampleconf config: source job: rename field 'datasets' to 'filesystems' 2017-10-05 13:39:05 +02:00
autosnap.go convert more code to structured logging 2017-09-23 17:52:29 +02:00
config_connect.go config: unify job debugging options 2017-09-11 15:45:10 +02:00
config_fsvfilter.go WIP: recurring jobs 2017-09-15 19:35:19 +02:00
config_job_control.go structured logging for control job 2017-09-23 11:07:08 +02:00
config_job_local.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_job_pull.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_job_source.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_logging.go config: logging: defaults + definition as list 2017-10-05 13:31:16 +02:00
config_mapfilter.go mappings: fix aliasing bug with '<' wildcards 2017-10-05 20:10:05 +02:00
config_parse.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_prune_grid.go config: support days (d) and weeks (w) in durations 2017-10-05 15:17:37 +02:00
config_prune_none.go cmd: noprune prune policy 2017-09-15 19:32:09 +02:00
config_serve_stdinserver.go cmd: extract listening on a UNIX socket in a private directory into a helper func 2017-09-17 23:41:51 +02:00
config_test.go mappings: fix aliasing bug with '<' wildcards 2017-10-05 20:10:05 +02:00
config.go cmd: logging using logrus 2017-09-22 17:01:54 +02:00
control.go cmd: no context + logging for config parsing 2017-09-22 14:13:30 +02:00
daemon.go make vet happy: 'don't leak contexts' 2017-09-30 16:39:52 +02:00
handler.go cmd: logging using logrus 2017-09-22 17:01:54 +02:00
helpers.go fix unreachable code & missing stringer-generated code 2017-09-30 16:31:55 +02:00
logging_formatters.go implement logfmt formatter 2017-09-24 02:09:50 +02:00
logging_outlets.go tcp outlet: fix error handling on write failure 2017-09-30 16:38:48 +02:00
main.go dump logrus and roll our own logger instead 2017-09-24 00:57:52 +02:00
prune.go cmd: configurable logrus formatters 2017-09-23 11:24:36 +02:00
replication.go fix unreachable code & missing stringer-generated code 2017-09-30 16:31:55 +02:00
stdinserver.go cmd: no context + logging for config parsing 2017-09-22 14:13:30 +02:00
test.go config: source job: rename field 'datasets' to 'filesystems' 2017-10-05 13:39:05 +02:00