svn commit: r274796 - head/usr.sbin/autofs
Edward Tomasz Napierala
trasz at FreeBSD.org
Fri Nov 21 15:49:42 UTC 2014
Author: trasz
Date: Fri Nov 21 15:49:41 2014
New Revision: 274796
URL: https://svnweb.freebsd.org/changeset/base/274796
Log:
Document use of wildcards (*) and ampersands (&) in autofs map files.
Differential Revision: https://reviews.freebsd.org/D1199
Reviewed by: wblock@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/autofs/auto_master.5
Modified: head/usr.sbin/autofs/auto_master.5
==============================================================================
--- head/usr.sbin/autofs/auto_master.5 Fri Nov 21 15:38:31 2014 (r274795)
+++ head/usr.sbin/autofs/auto_master.5 Fri Nov 21 15:49:41 2014 (r274796)
@@ -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
More information about the svn-src-all
mailing list