summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-12-21 11:15:35 +0000
committertrasz <trasz@FreeBSD.org>2014-12-21 11:15:35 +0000
commit0ba11869deb78203933ec8ea069a1f00c7de0d80 (patch)
treead21e6ad4ad79ebacc2d32b7bde8335caf2b6fed /usr.sbin/autofs
parent2e865a9c0a939d6b4f62f97bb58386b24b1c24a7 (diff)
downloadFreeBSD-src-0ba11869deb78203933ec8ea069a1f00c7de0d80.zip
FreeBSD-src-0ba11869deb78203933ec8ea069a1f00c7de0d80.tar.gz
MFC r274796:
Document use of wildcards (*) and ampersands (&) in autofs map files. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/autofs')
-rw-r--r--usr.sbin/autofs/auto_master.523
1 files changed, 20 insertions, 3 deletions
diff --git a/usr.sbin/autofs/auto_master.5 b/usr.sbin/autofs/auto_master.5
index f7f369d..8e817fe 100644
--- a/usr.sbin/autofs/auto_master.5
+++ b/usr.sbin/autofs/auto_master.5
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 19, 2014
+.Dd November 21, 2014
.Dt AUTO_MASTER 5
.Os
.Sh NAME
@@ -124,6 +124,12 @@ is the path component used by
.Xr automountd 8
to find the right map entry to use.
It is also used to form the final mountpoint.
+A wildcard
+.Pq Ql *
+can be used for the key.
+It matches every directory that does not match other keys.
+Those directories will not be visible to the user
+until accessed.
.Pp
The
.Ar options
@@ -155,9 +161,20 @@ for a single key.
The
.Ar location
field specifies the filesystem to be mounted.
-To pass location that begins with
+Ampersands
+.Pq Ql &
+in the
+.Ar location
+field are replaced with the value of
+.Ar key .
+This is typically used with wildcards, like:
+.Bd -literal -offset indent
+.Li * 192.168.1.1:/share/&
+.Ed
+.Pp
+To pass a location that begins with
.Li / ,
-prefix it with colon.
+prefix it with a colon.
For example,
.Li :/dev/cd0 .
.Pp
OpenPOWER on IntegriCloud