diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-13 11:02:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-13 11:02:06 +0000 |
commit | d34198ecfd8e002db6a921a07a3ed18f15d30e54 (patch) | |
tree | 28e3a379cf38b3af63469c183fb9ce6e4cb5fe2e /etc | |
parent | 0737a362a2cda4ef822279a1584cb8dd705ffd11 (diff) | |
download | FreeBSD-src-d34198ecfd8e002db6a921a07a3ed18f15d30e54.zip FreeBSD-src-d34198ecfd8e002db6a921a07a3ed18f15d30e54.tar.gz |
- 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'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/zfs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.d/zfs b/etc/rc.d/zfs index 093f4c6..3f479cc 100644 --- a/etc/rc.d/zfs +++ b/etc/rc.d/zfs @@ -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 |