- 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:
Pawel Jakub Dawidek 2007-04-13 11:02:06 +00:00
parent 83ad9fd2d5
commit e21f48c40e

View File

@ -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