]> git.proxmox.com Git - mirror_zfs.git/commit - configure.ac
systemd mount generator and tracking ZEDLET
authorAntonio Russo <antonio.e.russo@gmail.com>
Fri, 6 Apr 2018 21:11:09 +0000 (17:11 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Apr 2018 21:11:09 +0000 (14:11 -0700)
commit55d80e651a8c19919b8ee6a1c05fb36ad97ab5ad
tree10250074931531d3b32418dc8780fafbc122f0f5
parent5c27ec10889d3d8f12d59fb7e5068ed2d8697c85
systemd mount generator and tracking ZEDLET

zfs-mount-generator implements the "systemd generator" protocol,
producing systemd.mount units from the cached outputs of zfs list,
during early boot, integrating with systemd.

Each pool has an indpendent cache of the command

  zfs list -H -oname,mountpoint,canmount -tfilesystem -r $pool

which is kept synchronized by the ZEDLET

  history_event-zfs-list-cacher.sh

Datasets not in the cache will be loaded later in the boot process by
zfs-mount.service, including pools without a cache.

Among other things, this allows for complex mount hierarchies.

Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #7329
12 files changed:
cmd/zed/Makefile.am
cmd/zed/zed.d/.gitignore [new file with mode: 0644]
cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in [new file with mode: 0755]
config/user-systemd.m4
configure.ac
etc/systemd/Makefile.am
etc/systemd/system-generators/.gitignore [new file with mode: 0644]
etc/systemd/system-generators/Makefile.am [new file with mode: 0644]
etc/systemd/system-generators/zfs-mount-generator.in [new file with mode: 0755]
man/man8/Makefile.am
man/man8/zfs-mount-generator.8 [new file with mode: 0644]
rpm/generic/zfs.spec.in