]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
New service that waits on zvol links to be created
authorPavel Zakharov <pavel.zakharov@delphix.com>
Wed, 17 Jul 2019 22:33:05 +0000 (18:33 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jul 2019 22:33:05 +0000 (15:33 -0700)
commit26b60474691ad4bdb91f61b667819e22aabc202f
tree268a5e17012042c2b7d444b212c2293997ffaced
parentd64dd3b62a5411e628ce59b11fe50ba848d12ffc
New service that waits on zvol links to be created

The zfs-volume-wait.service scans existing zvols and waits for their
links under /dev to be created. Any service that depends on zvol
links to be there should add a dependency on zfs-volumes.target.
By default, this target is not enabled.

Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Antonio Russo <antonio.e.russo@gmail.com>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: John Gallagher <john.gallagher@delphix.com>
Reviewed-by: George Wilson <gwilson@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Zakharov <pzakharov@delphix.com>
Closes #8975
cmd/Makefile.am
cmd/zvol_wait/Makefile.am [new file with mode: 0644]
cmd/zvol_wait/zvol_wait [new file with mode: 0755]
configure.ac
etc/systemd/system/50-zfs.preset.in
etc/systemd/system/Makefile.am
etc/systemd/system/zfs-volume-wait.service.in [new file with mode: 0644]
etc/systemd/system/zfs-volumes.target.in [new file with mode: 0644]
man/man1/Makefile.am
man/man1/zvol_wait.1 [new file with mode: 0644]
rpm/generic/zfs.spec.in