Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2006 15:13:37 +0100
From:      Ceri Davies <ceri@submonkey.net>
To:        current@FreeBSD.org
Subject:   Building idmapd
Message-ID:  <20061013141337.GM24163@submonkey.net>

next in thread | raw e-mail | index | archive | help

--rVkomL2febZOZtGQ
Content-Type: multipart/mixed; boundary="fUvfsPTz/SzOZDdw"
Content-Disposition: inline


--fUvfsPTz/SzOZDdw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Is there any reason that idmapd is not connected to the build?
It seems to be working just fine here and, certainly, NFS4 mounts get
funny ids without it.

I've made some minorchanges and written an rc script (patch attached)
and I'd like to commit it this weekend if there are no objections.

Cheers,

Ceri
--=20
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere

--fUvfsPTz/SzOZDdw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="idmapd.diff"
Content-Transfer-Encoding: quoted-printable

Index: etc/defaults/rc.conf
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.298
diff -u -r1.298 rc.conf
--- etc/defaults/rc.conf	6 Oct 2006 23:22:12 -0000	1.298
+++ etc/defaults/rc.conf	13 Oct 2006 13:55:00 -0000
@@ -242,6 +242,7 @@
 nfs_access_cache=3D"60"		# Client cache timeout in seconds
 nfs_server_enable=3D"NO"		# This host is an NFS server (or NO).
 nfs_server_flags=3D"-u -t -n 4"	# Flags to nfsd (if enabled).
+idmapd_enable=3D"NO"		# Run the NFS4 id mapper (YES/NO).
 mountd_enable=3D"NO"		# Run mountd (or NO).
 mountd_flags=3D"-r"		# Flags to mountd (if NFS server enabled).
 weak_mountd_authentication=3D"NO"	# Allow non-root mount requests to be se=
rved.
Index: etc/rc.d/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/etc/rc.d/Makefile,v
retrieving revision 1.77
diff -u -r1.77 Makefile
--- etc/rc.d/Makefile	7 Oct 2006 15:45:56 -0000	1.77
+++ etc/rc.d/Makefile	13 Oct 2006 12:24:26 -0000
@@ -15,7 +15,7 @@
 	gbde geli geli2 \
 	hcsecd \
 	hostapd hostname \
-	inetd initrandom \
+	idmapd inetd initrandom \
 	ip6addrctl ip6fw ipfilter ipfs ipfw ipmon \
 	ipnat ipsec ipxrouted isdnd \
 	jail \
Index: etc/rc.d/idmapd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: etc/rc.d/idmapd
diff -N etc/rc.d/idmapd
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ etc/rc.d/idmapd	13 Oct 2006 13:30:53 -0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: idmapd
+# REQUIRE: rpcbind
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name=3D"idmapd"
+
+load_rc_config $name
+rcvar=3D"idmapd_enable"
+command=3D"${idmapd:-/sbin/${name}}"
+eval ${name}_flags=3D\"${idmapd_flags}\"
+run_rc_command "$1"
Index: sbin/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/sbin/Makefile,v
retrieving revision 1.162
diff -u -r1.162 Makefile
--- sbin/Makefile	27 Jul 2006 17:50:05 -0000	1.162
+++ sbin/Makefile	13 Oct 2006 12:19:34 -0000
@@ -36,6 +36,7 @@
 	gpt \
 	growfs \
 	gvinum \
+	idmapd \
 	ifconfig \
 	init \
 	${_ipf} \
Index: sbin/idmapd/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/sbin/idmapd/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- sbin/idmapd/Makefile	28 Jan 2005 16:08:06 -0000	1.3
+++ sbin/idmapd/Makefile	13 Oct 2006 12:20:00 -0000
@@ -5,9 +5,7 @@
 PROG=3D	idmapd
 MAN=3D	idmapd.8
=20
-CFLAGS+=3D -DNFS -I/usr/src/sys
+CFLAGS+=3D -DNFS -I${.CURDIR}/../../sys
 WARNS?=3D	2
=20
-.PATH:
-
 .include <bsd.prog.mk>
Index: sbin/idmapd/idmapd.8
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/home/ncvs/src/sbin/idmapd/idmapd.8,v
retrieving revision 1.4
diff -u -r1.4 idmapd.8
--- sbin/idmapd/idmapd.8	21 Jan 2005 10:27:44 -0000	1.4
+++ sbin/idmapd/idmapd.8	13 Oct 2006 12:20:31 -0000
@@ -22,7 +22,7 @@
 .\"
 .\" $FreeBSD: src/sbin/idmapd/idmapd.8,v 1.4 2005/01/21 10:27:44 ru Exp $
 .\"
-.Dd November 14, 2003
+.Dd October 13, 2006
 .Dt IDMAPD 8
 .Os
 .Sh NAME
@@ -37,7 +37,7 @@
 .Nm
 daemon normally runs in the background and services UID/GID-to-name and
 name-to-UID/GID mapping
-requests from the NFSv4 client.
+requests from the NFSv4 client kernel threads.
 .Pp
 The options are:
 .Bl -tag -width indent
@@ -60,4 +60,4 @@
 .Sh SEE ALSO
 .Xr getpwnam 3 ,
 .Xr getpwuid 3 ,
-.Xr mount_nfs 8
+.Xr mount_nfs4 8

--fUvfsPTz/SzOZDdw--

--rVkomL2febZOZtGQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFL58RocfcwTS3JF8RAuRPAKDCUyzkMZ7ne12VJaRU1H1ceC2l/QCeMvSS
rpvLW0XWzWeEYjhM6pm9yno=
=6koJ
-----END PGP SIGNATURE-----

--rVkomL2febZOZtGQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061013141337.GM24163>