2005-04-23 22:38:17 +04:00
|
|
|
.\" $NetBSD: automount2amd.8,v 1.6 2005/04/23 18:38:18 christos Exp $
|
2001-05-13 21:49:57 +04:00
|
|
|
.\"
|
2000-06-07 04:52:18 +04:00
|
|
|
.\"
|
2005-04-23 22:38:17 +04:00
|
|
|
.\" Copyright (c) 1997-2005 Erez Zadok
|
2000-06-07 04:52:18 +04:00
|
|
|
.\" Copyright (c) 1990 Jan-Simon Pendry
|
|
|
|
.\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
|
|
|
|
.\" Copyright (c) 1990 The Regents of the University of California.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to Berkeley by
|
|
|
|
.\" Jan-Simon Pendry at Imperial College, London.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgment:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" %W% (Berkeley) %G%
|
|
|
|
.\"
|
2005-04-23 22:38:17 +04:00
|
|
|
.\" Id: automount2amd.8,v 1.8 2005/01/03 20:56:46 ezk Exp
|
2000-06-07 04:52:18 +04:00
|
|
|
.\"
|
|
|
|
.TH AUTOMOUNT2AMD 8L "24 May 1993"
|
|
|
|
.SH NAME
|
|
|
|
automount2amd \- converts old Sun automount maps to Amd maps
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B automount2amd
|
|
|
|
.I auto.map
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.LP
|
|
|
|
.B automount2amd
|
|
|
|
is used to convert an old Sun automount maps named
|
|
|
|
.I auto.map
|
|
|
|
to an Amd map.
|
|
|
|
|
|
|
|
This perl script will use the following /default entry
|
|
|
|
.nf
|
|
|
|
type:=nfs;opts:=rw,grpid,nosuid,utimeout=600
|
|
|
|
.fi
|
|
|
|
If you wish to override that, define the
|
|
|
|
.B $DEFAULTS
|
|
|
|
environment variable, or modify the script.
|
|
|
|
|
|
|
|
If you wish to generate Amd maps using the
|
|
|
|
.I hostd
|
|
|
|
(host domain) Amd map syntax, then define the environment variable
|
|
|
|
.B $DOMAIN
|
|
|
|
or modify the script.
|
|
|
|
|
|
|
|
.SH EXAMPLE
|
|
|
|
Say you have the Sun automount file auto.foo, with these two lines:
|
|
|
|
.nf
|
|
|
|
home earth:/home
|
|
|
|
moon -ro,intr server:/proj/images
|
|
|
|
.fi
|
|
|
|
Running
|
|
|
|
.nf
|
|
|
|
automount2amd auto.foo > amd.foo
|
|
|
|
.fi
|
|
|
|
will produce the Amd map
|
|
|
|
.I amd.foo
|
|
|
|
with this content:
|
|
|
|
.nf
|
|
|
|
# generated by automount2amd on Sat Aug 14 17:59:32 US/Eastern 1999
|
|
|
|
|
|
|
|
/defaults \\
|
|
|
|
type:=nfs;opts:=rw,grpid,nosuid,utimeout=600
|
|
|
|
|
|
|
|
home \
|
|
|
|
host==earth;type:=link;fs:=/home \\
|
|
|
|
rhost:=earth;rfs:=/home
|
|
|
|
|
|
|
|
moon \
|
|
|
|
-addopts:=ro,intr \\
|
|
|
|
host==server;type:=link;fs:=/proj/images \\
|
|
|
|
rhost:=server;rfs:=/proj/images
|
|
|
|
.fi
|
|
|
|
.SH BUGS
|
|
|
|
.I automount2amd
|
|
|
|
does not understand newer Sun Automount map syntax, those used by autofs.
|
|
|
|
.SH "SEE ALSO"
|
2004-11-27 04:24:35 +03:00
|
|
|
.BR amd (8).
|
2001-12-18 12:31:47 +03:00
|
|
|
.\" .BR conv2amd (8)
|
2004-11-27 04:24:35 +03:00
|
|
|
.LP
|
|
|
|
``am-utils''
|
|
|
|
.BR info (1)
|
|
|
|
entry.
|
|
|
|
.LP
|
|
|
|
.I "Linux NFS and Automounter Administration"
|
|
|
|
by Erez Zadok, ISBN 0-7821-2739-8, (Sybex, 2001).
|
|
|
|
.LP
|
|
|
|
.I http://www.am-utils.org
|
|
|
|
.LP
|
|
|
|
.I "Amd \- The 4.4 BSD Automounter"
|
2000-06-07 04:52:18 +04:00
|
|
|
.SH AUTHORS
|
2004-11-27 04:24:35 +03:00
|
|
|
Original author Mike Walker <mike@tab00.larc.nasa.gov>.
|
|
|
|
Script modified by Erez Zadok <ezk@cs.sunysb.edu>, Computer Science
|
|
|
|
Department, Stony Brook University, Stony Brook, New York, USA.
|
|
|
|
.P
|
|
|
|
Other authors and contributors to am-utils are listed in the
|
|
|
|
.B AUTHORS
|
|
|
|
file distributed with am-utils.
|