zfs/etc/systemd/system
George Wilson a8c5bcb5de 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-09-25 11:27:50 -07:00
..
.gitignore Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00
50-zfs.preset.in Cleanup systemd dependencies 2017-11-08 09:39:15 -08:00
Makefile.am systemd zfs-import.target and documentation 2017-10-30 13:18:26 -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-09-25 11:27:50 -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