zfs/etc
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
..
init.d zfs-import: should be before swap 2019-03-14 18:12:17 -07:00
modules-load.d Add kernel module auto-loading 2018-03-13 10:45:55 -07:00
sudoers.d zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
systemd Race between zfs-share and zfs-mount services 2019-07-28 18:13:56 -07:00
zfs Add enclosure_symlinks option to vdev_id 2018-12-14 17:27:49 -08:00
Makefile.am zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00