[Midnightbsd-cvs] src: mountd: add zfs support

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jan 17 12:40:45 EST 2009


Log Message:
-----------
add zfs support

Modified Files:
--------------
    src/etc/rc.d:
        mountd (r1.2 -> r1.3)

-------------- next part --------------
Index: mountd
===================================================================
RCS file: /home/cvs/src/etc/rc.d/mountd,v
retrieving revision 1.2
retrieving revision 1.3
diff -L etc/rc.d/mountd -L etc/rc.d/mountd -u -r1.2 -r1.3
--- etc/rc.d/mountd
+++ etc/rc.d/mountd
@@ -1,7 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: mountd,v 1.11 2002/01/31 01:26:06 lukem Exp $
-# $FreeBSD: src/etc/rc.d/mountd,v 1.15.2.1 2005/09/21 20:27:50 rodrigc Exp $
+# $FreeBSD: src/etc/rc.d/mountd,v 1.19.4.1 2008/01/28 07:58:31 dougb Exp $
 # $MidnightBSD$
 
 # PROVIDE: mountd
@@ -13,6 +12,7 @@
 name="mountd"
 rcvar=`set_rcvar`
 command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
 required_files="/etc/exports"
 start_precmd="mountd_precmd"
 extra_commands="reload"
@@ -36,6 +36,11 @@
 			checkyesno weak_mountd_authentication && rc_flags="-n"
 		fi
 	fi
+
+	if checkyesno zfs_enable; then
+		rc_flags="${rc_flags} /etc/exports /etc/zfs/exports"
+	fi
+
 	rm -f /var/db/mountdtab
 	( umask 022 ; > /var/db/mountdtab )
 	return 0


More information about the Midnightbsd-cvs mailing list