automounter map entry with or without slash /

From: Peter W. Osel (pwo@Infineon.COM)
Date: Thu Aug 04 2005 - 14:06:33 EDT


Hello Sun Managers,

When using the automounter for multiple (hierarchical) mounts, e.g.

        Modules -ro \
                / svr1,svr2:/fs00/s00/Modules/SunOS_5.11_sparc_all \
                /share svr1,svr2:/fs00/s00/Modules/share

a mountpoint of / is assumed if you omit the first mountpoint.

For a single mount entry, e.g.

        Modules -ro svr1,svr2:/fs00/s00/Modules

the man page does not specify a mountpoint:

        key [ -mount-options ] location ...

however the automounter on Solaris (e.g. 8 and 9), seems to happily
accept it, i.e. this entry does work:

        Modules -ro / svr1,svr2:/fs00/s00/Modules

While I would tend to not list the mountpoint /, I am curious if there
are technical arguments for or against it. Or reprhrased, by listing
the mount point for a simple map entry, does the automounter have to do
something different internally, or is the mountpoint simply ignored.

Cheers
        --pwo

--
Peter W. Osel					eMail:	pwo@Infineon.COM
Principal - Technology Innovation		Phone:	+1.408.501.6321
Board of Architects				Cell:	+1.408.348.6735
Infineon Technologies North America Corp.	eFax:   +1.408.392.8004
1730 North First Street
San Jose, CA 95112, USA				WWW:	http://pwo.de/
pgp key fingerprint = 79 2D DD 49 C0 AA D8 CF 2C F9 A5 6A BA 37 0E 28
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:14 EDT