aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2023-03-20 22:16:03 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2023-03-20 22:16:03 +0000
commit9432e798fc6daaad341a496e9abcf9e3b760a63b (patch)
tree29edf68c0aae96414469ec6b51c8e6cc5d66a8dc /usr.sbin/mountd
parentd780c6a6abb5275c8c7219539553d51ac94a023e (diff)
downloadsrc-9432e798fc6daaad341a496e9abcf9e3b760a63b.tar.gz
src-9432e798fc6daaad341a496e9abcf9e3b760a63b.zip
mountd.8: Update for mountd running in jails
Mountd can now be run in an appropriately configured vnet jail. This man page update adds some information for this case. This is a content change. Reviewed by: markj MFC after: 3 months Differential Revision: https://reviews.freebsd.org/D39168
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.829
1 files changed, 27 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.8 b/usr.sbin/mountd/mountd.8
index 128b305cb5d9..207b50e3501d 100644
--- a/usr.sbin/mountd/mountd.8
+++ b/usr.sbin/mountd/mountd.8
@@ -28,7 +28,7 @@
.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd October 11, 2020
+.Dd March 18, 2023
.Dt MOUNTD 8
.Os
.Sh NAME
@@ -158,7 +158,7 @@ When
is started,
it loads the export host addresses and options into the kernel
using the
-.Xr mount 2
+.Xr nmount 2
system call.
After changing the exports file,
a hangup signal should be sent to the
@@ -172,6 +172,20 @@ check the syslog output to see if
logged any parsing
errors in the exports file.
.Pp
+If multiple instances of
+.Nm
+are being run, either in multiple jails or both within
+and outside of a jail, care must be taken to export
+any given file system in only one of the instances.
+Note that the
+.Va allow.nfsd
+jail parameter is required to allow
+.Nm
+to run in a jail.
+See
+.Xr jail 8
+for more information.
+.Pp
If
.Nm
detects that the running kernel does not include
@@ -185,6 +199,15 @@ If this fails, or no
KLD was available,
.Nm
exits with an error.
+When run in a jail, the
+.Xr kldload 2
+must be done outside the jail, typically by adding
+.Dq nfsd
+to
+.Va kld_list
+in the
+.Xr rc.conf 5
+file on the jail host.
.Sh FILES
.Bl -tag -width /var/run/mountd.pid -compact
.It Pa /etc/exports
@@ -199,6 +222,8 @@ the current list of remote mounted file systems
.Xr kldload 2 ,
.Xr nfsv4 4 ,
.Xr exports 5 ,
+.Xr rc.conf 5 ,
+.Xr jail 8 ,
.Xr nfsd 8 ,
.Xr rpcbind 8 ,
.Xr showmount 8