- Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don't
NFS-share anything. This way we can safely start mountd with /etc/zfs/exports and mountd won't complain. Pointed out by: ceri - Move 'zfs volinit' before 'zfs mount -a' and 'zfs volfini' after 'zfs unmount -a'.
This commit is contained in:
parent
83ad9fd2d5
commit
e21f48c40e
@ -17,16 +17,19 @@ required_modules="zfs"
|
||||
|
||||
zfs_start()
|
||||
{
|
||||
zfs mount -a
|
||||
zfs volinit
|
||||
zfs mount -a
|
||||
zfs share -a
|
||||
if [ ! -r /etc/zfs/exports ]; then
|
||||
touch /etc/zfs/exports
|
||||
fi
|
||||
}
|
||||
|
||||
zfs_stop()
|
||||
{
|
||||
zfs unshare -a
|
||||
zfs volfini
|
||||
zfs unmount -a
|
||||
zfs volfini
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
Loading…
x
Reference in New Issue
Block a user