Date: Sun, 21 Dec 2014 11:15:35 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r275997 - stable/10/usr.sbin/autofs Message-ID: <201412211115.sBLBFZYq063778@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sun Dec 21 11:15:35 2014 New Revision: 275997 URL: https://svnweb.freebsd.org/changeset/base/275997 Log: MFC r274796: Document use of wildcards (*) and ampersands (&) in autofs map files. Sponsored by: The FreeBSD Foundation Modified: stable/10/usr.sbin/autofs/auto_master.5 Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/autofs/auto_master.5 ============================================================================== --- stable/10/usr.sbin/autofs/auto_master.5 Sun Dec 21 11:11:17 2014 (r275996) +++ stable/10/usr.sbin/autofs/auto_master.5 Sun Dec 21 11:15:35 2014 (r275997) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412211115.sBLBFZYq063778>