mirror_zfs/etc/systemd/system
George Wilson 453bb4791e Race between zfs-share and zfs-mount services
When a system boots the zfs-mount.service and the
zfs-share.service can start simultaneously. What may be
unclear is that sharing a filesystem will first mount
the filesystem if it's not already mounted. This means
that both service can race to mount the same fileystem.
This race can result in a SEGFAULT or EBUSY conditions.

This change explicitly defines the start ordering between the
two services such that the zfs-mount.service is solely
responsible for mounting filesystems eliminating the race
between "zfs mount -a" and "zfs share -a" commands.

Reviewed-by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Wilson <george.wilson@delphix.com>
Closes #9083
2019-07-28 18:13:56 -07:00
..
.gitignore Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00
50-zfs.preset.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
Makefile.am New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
zfs-import-cache.service.in Move dracut specifics to dracut module 2019-04-02 17:14:39 -07:00
zfs-import-scan.service.in Move dracut specifics to dracut module 2019-04-02 17:14:39 -07:00
zfs-import.target.in Cleanup systemd dependencies 2017-11-08 09:39:15 -08:00
zfs-mount.service.in Cleanup systemd dependencies 2017-11-08 09:39:15 -08:00
zfs-share.service.in Race between zfs-share and zfs-mount services 2019-07-28 18:13:56 -07:00
zfs-volume-wait.service.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
zfs-volumes.target.in New service that waits on zvol links to be created 2019-07-17 15:33:05 -07:00
zfs-zed.service.in Add kernel module auto-loading 2018-03-13 10:45:55 -07:00
zfs.target.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00