Apply a series of scripts to automatically fix some markup bugs.
Approved by: re (blanket)
This commit is contained in:
parent
83c94dadce
commit
c1c9502bf7
contrib/amd
amd
amq
fixmount
fsinfo
hlfsd
mk-amd-map
scripts
@ -83,7 +83,8 @@
|
|||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm Amd
|
.Nm Amd
|
||||||
is a daemon that automatically mounts file systems whenever a file or directory
|
is a daemon that automatically mounts file systems whenever a file or directory
|
||||||
within that file system is accessed. File systems are automatically unmounted
|
within that file system is accessed.
|
||||||
|
File systems are automatically unmounted
|
||||||
when they appear to be quiescent.
|
when they appear to be quiescent.
|
||||||
.Pp
|
.Pp
|
||||||
.Nm Amd
|
.Nm Amd
|
||||||
@ -96,12 +97,14 @@ are handled by
|
|||||||
.Nm amd ,
|
.Nm amd ,
|
||||||
which uses the map defined by
|
which uses the map defined by
|
||||||
.Ar mapname
|
.Ar mapname
|
||||||
to determine how to resolve the lookup. Generally, this will be a host name,
|
to determine how to resolve the lookup.
|
||||||
|
Generally, this will be a host name,
|
||||||
some file system information and some mount options for the given file system.
|
some file system information and some mount options for the given file system.
|
||||||
.Pp
|
.Pp
|
||||||
In the first form depicted above,
|
In the first form depicted above,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will print a short help string. In the second form, if no options are
|
will print a short help string.
|
||||||
|
In the second form, if no options are
|
||||||
specified, or if the
|
specified, or if the
|
||||||
.Fl F
|
.Fl F
|
||||||
is used,
|
is used,
|
||||||
@ -121,12 +124,15 @@ The default is
|
|||||||
Specify a
|
Specify a
|
||||||
.Ar duration ,
|
.Ar duration ,
|
||||||
in seconds, that a looked up name remains
|
in seconds, that a looked up name remains
|
||||||
cached when not in use. The default is 5 minutes.
|
cached when not in use.
|
||||||
|
The default is 5 minutes.
|
||||||
.It Fl d Ar domain
|
.It Fl d Ar domain
|
||||||
Specify the local domain name. If this option is not
|
Specify the local domain name.
|
||||||
|
If this option is not
|
||||||
given the domain name is determined from the hostname.
|
given the domain name is determined from the hostname.
|
||||||
.It Fl k Ar kernel-arch
|
.It Fl k Ar kernel-arch
|
||||||
Specifies the kernel architecture. This is used solely
|
Specifies the kernel architecture.
|
||||||
|
This is used solely
|
||||||
to set the ${karch} selector.
|
to set the ${karch} selector.
|
||||||
.It Fl l Ar logfile
|
.It Fl l Ar logfile
|
||||||
Specify a logfile in which to record mount and unmount events.
|
Specify a logfile in which to record mount and unmount events.
|
||||||
@ -151,7 +157,8 @@ using the LOG_LOCAL7 facility (if it exists on the system).
|
|||||||
.It Fl n
|
.It Fl n
|
||||||
Normalize hostnames.
|
Normalize hostnames.
|
||||||
The name referred to by ${rhost} is normalized relative to the
|
The name referred to by ${rhost} is normalized relative to the
|
||||||
host database before being used. The effect is to translate
|
host database before being used.
|
||||||
|
The effect is to translate
|
||||||
aliases into ``official'' names.
|
aliases into ``official'' names.
|
||||||
.It Fl o Ar op_sys_ver
|
.It Fl o Ar op_sys_ver
|
||||||
Override the compiled-in version number of the operating system.
|
Override the compiled-in version number of the operating system.
|
||||||
@ -172,7 +179,8 @@ to standard output where it can be saved into a file.
|
|||||||
Restart existing mounts.
|
Restart existing mounts.
|
||||||
.Nm Amd
|
.Nm Amd
|
||||||
will scan the mount file table to determine which file systems
|
will scan the mount file table to determine which file systems
|
||||||
are currently mounted. Whenever one of these would have
|
are currently mounted.
|
||||||
|
Whenever one of these would have
|
||||||
been auto-mounted,
|
been auto-mounted,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
.Em inherits
|
.Em inherits
|
||||||
@ -182,25 +190,33 @@ Specify the NFS timeout
|
|||||||
.Ar interval ,
|
.Ar interval ,
|
||||||
in tenths of a second, between
|
in tenths of a second, between
|
||||||
.Tn NFS/RPC
|
.Tn NFS/RPC
|
||||||
retries (for UDP only). The default
|
retries (for UDP only).
|
||||||
is 0.8 seconds. The second value alters the retransmit counter, which
|
The default
|
||||||
defaults to 11 retransmissions. Both of these values are used by the kernel
|
is 0.8 seconds.
|
||||||
to communicate with amd. Useful defaults are supplied if either or both
|
The second value alters the retransmit counter, which
|
||||||
|
defaults to 11 retransmissions.
|
||||||
|
Both of these values are used by the kernel
|
||||||
|
to communicate with amd.
|
||||||
|
Useful defaults are supplied if either or both
|
||||||
values are missing.
|
values are missing.
|
||||||
.Pp
|
.Pp
|
||||||
Amd relies on the kernel RPC retransmit mechanism to trigger mount retries.
|
Amd relies on the kernel RPC retransmit mechanism to trigger mount retries.
|
||||||
The values of these parameters change the overall retry interval. Too long
|
The values of these parameters change the overall retry interval.
|
||||||
|
Too long
|
||||||
an interval gives poor interactive response; too short an interval causes
|
an interval gives poor interactive response; too short an interval causes
|
||||||
excessive retries.
|
excessive retries.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Version. Displays version and configuration information on standard error.
|
Version.
|
||||||
|
Displays version and configuration information on standard error.
|
||||||
.It Fl w Ar interval
|
.It Fl w Ar interval
|
||||||
Specify an
|
Specify an
|
||||||
.Ar interval ,
|
.Ar interval ,
|
||||||
in seconds, between attempts to dismount file systems that have exceeded their
|
in seconds, between attempts to dismount file systems that have exceeded their
|
||||||
cached times. The default is 2 minutes.
|
cached times.
|
||||||
|
The default is 2 minutes.
|
||||||
.It Fl x Ar options
|
.It Fl x Ar options
|
||||||
Specify run-time logging options. The options are a comma separated list
|
Specify run-time logging options.
|
||||||
|
The options are a comma separated list
|
||||||
chosen from: fatal, error, user, warn, info, map, stats, all.
|
chosen from: fatal, error, user, warn, info, map, stats, all.
|
||||||
.It Fl y Ar domain
|
.It Fl y Ar domain
|
||||||
Specify an alternative
|
Specify an alternative
|
||||||
@ -215,10 +231,12 @@ support is not available.
|
|||||||
.It Fl C Ar cluster-name
|
.It Fl C Ar cluster-name
|
||||||
Specify an alternative HP-UX cluster name to use.
|
Specify an alternative HP-UX cluster name to use.
|
||||||
.It Fl D Ar option
|
.It Fl D Ar option
|
||||||
Select from a variety of debug options. Prefixing an
|
Select from a variety of debug options.
|
||||||
|
Prefixing an
|
||||||
option with the string
|
option with the string
|
||||||
.Em no
|
.Em no
|
||||||
reverses the effect of that option. Options are cumulative.
|
reverses the effect of that option.
|
||||||
|
Options are cumulative.
|
||||||
The most useful option is
|
The most useful option is
|
||||||
.Ar all .
|
.Ar all .
|
||||||
.Pp
|
.Pp
|
||||||
@ -232,14 +250,18 @@ and a fuller description is available in the program source.
|
|||||||
.It Fl F Ar conf_file
|
.It Fl F Ar conf_file
|
||||||
Specify an
|
Specify an
|
||||||
.Nm amd
|
.Nm amd
|
||||||
configuration file to use. See
|
configuration file to use.
|
||||||
|
See
|
||||||
.Xr amd.conf 5
|
.Xr amd.conf 5
|
||||||
for description of this file's format. This configuration file is used to
|
for description of this file's format.
|
||||||
specify any options in lieu of typing many of them on the command line. The
|
This configuration file is used to
|
||||||
|
specify any options in lieu of typing many of them on the command line.
|
||||||
|
The
|
||||||
.Nm amd.conf
|
.Nm amd.conf
|
||||||
file includes directives for every command line option amd has,
|
file includes directives for every command line option amd has,
|
||||||
and many more that are only available via the configuration file
|
and many more that are only available via the configuration file
|
||||||
facility. The configuration file specified by this option is
|
facility.
|
||||||
|
The configuration file specified by this option is
|
||||||
processed after all other options have been processed, regardless
|
processed after all other options have been processed, regardless
|
||||||
of the actual location of this option on the command line.
|
of the actual location of this option on the command line.
|
||||||
.It Fl H
|
.It Fl H
|
||||||
@ -256,16 +278,19 @@ and use older maps which were written with the latter in mind.
|
|||||||
.It Fl S
|
.It Fl S
|
||||||
Do not lock the running executable pages of
|
Do not lock the running executable pages of
|
||||||
.Nm amd
|
.Nm amd
|
||||||
into memory. To improve
|
into memory.
|
||||||
|
To improve
|
||||||
.Nm amd's
|
.Nm amd's
|
||||||
performance, systems that support the
|
performance, systems that support the
|
||||||
.Xr plock 3
|
.Xr plock 3
|
||||||
call, could lock the
|
call, could lock the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process into memory. This way there is less chance the operating system will
|
process into memory.
|
||||||
|
This way there is less chance the operating system will
|
||||||
schedule, page out, and swap the
|
schedule, page out, and swap the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process as needed. This tends to improve
|
process as needed.
|
||||||
|
This tends to improve
|
||||||
.Nm amd's
|
.Nm amd's
|
||||||
performance, at the cost of reserving the memory used by the
|
performance, at the cost of reserving the memory used by the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
@ -331,6 +356,11 @@ the features.
|
|||||||
.Re
|
.Re
|
||||||
.Pp
|
.Pp
|
||||||
.Pa http://www.cs.columbia.edu/~ezk/am-utils/
|
.Pa http://www.cs.columbia.edu/~ezk/am-utils/
|
||||||
|
.Sh HISTORY
|
||||||
|
The
|
||||||
|
.Nm amd
|
||||||
|
utility first appeared in
|
||||||
|
.Bx 4.4 .
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
||||||
Department of Computing, Imperial College, London, UK.
|
Department of Computing, Imperial College, London, UK.
|
||||||
@ -342,8 +372,3 @@ New York, USA.
|
|||||||
Other authors and contributors to am-utils are listed in the
|
Other authors and contributors to am-utils are listed in the
|
||||||
.Pa AUTHORS
|
.Pa AUTHORS
|
||||||
file distributed with am-utils.
|
file distributed with am-utils.
|
||||||
.Sh HISTORY
|
|
||||||
The
|
|
||||||
.Nm amd
|
|
||||||
utility first appeared in
|
|
||||||
.Bx 4.4 .
|
|
||||||
|
@ -81,7 +81,8 @@ Request automounter to flush the internal caches.
|
|||||||
.It Fl h Ar hostname
|
.It Fl h Ar hostname
|
||||||
Query alternate host
|
Query alternate host
|
||||||
.Ar hostname .
|
.Ar hostname .
|
||||||
By default the local host is used. In an
|
By default the local host is used.
|
||||||
|
In an
|
||||||
.Tn HP-UX
|
.Tn HP-UX
|
||||||
cluster, the root server is queried by default, since
|
cluster, the root server is queried by default, since
|
||||||
that is the system on which the automounter is normally run.
|
that is the system on which the automounter is normally run.
|
||||||
@ -91,7 +92,8 @@ Tell amd to use
|
|||||||
as the log file name.
|
as the log file name.
|
||||||
For security reasons, this must be the same log file which
|
For security reasons, this must be the same log file which
|
||||||
.Nm amd
|
.Nm amd
|
||||||
used when started. This option is therefore only useful to
|
used when started.
|
||||||
|
This option is therefore only useful to
|
||||||
refresh
|
refresh
|
||||||
.Nm amd Ns \'s
|
.Nm amd Ns \'s
|
||||||
open file handle on the log file, so that it can be rotated and compressed via
|
open file handle on the log file, so that it can be rotated and compressed via
|
||||||
@ -105,7 +107,8 @@ Return the process ID of the remote or locally running
|
|||||||
.Nm amd .
|
.Nm amd .
|
||||||
Useful when you need to send a signal to the local
|
Useful when you need to send a signal to the local
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process, and would rather not have to search through the process table. This
|
process, and would rather not have to search through the process table.
|
||||||
|
This
|
||||||
option is used in the
|
option is used in the
|
||||||
.Pa ctl-amd
|
.Pa ctl-amd
|
||||||
script.
|
script.
|
||||||
@ -113,13 +116,16 @@ script.
|
|||||||
Request the automounter to provide system-wide mount statistics.
|
Request the automounter to provide system-wide mount statistics.
|
||||||
.It Fl u
|
.It Fl u
|
||||||
Request the automounter to unmount the named file systems
|
Request the automounter to unmount the named file systems
|
||||||
instead of providing information about them. Unmounts are requested,
|
instead of providing information about them.
|
||||||
not forced. They merely cause the mounted file system to timeout,
|
Unmounts are requested,
|
||||||
|
not forced.
|
||||||
|
They merely cause the mounted file system to timeout,
|
||||||
which will be picked up by
|
which will be picked up by
|
||||||
.Nm amd Ns \'s
|
.Nm amd Ns \'s
|
||||||
main scheduler thus causing the normal timeout action to be taken.
|
main scheduler thus causing the normal timeout action to be taken.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Request the automounter to provide version information. This is a subset
|
Request the automounter to provide version information.
|
||||||
|
This is a subset
|
||||||
of the information provided by
|
of the information provided by
|
||||||
.Nm amd Ns \'s Fl v
|
.Nm amd Ns \'s Fl v
|
||||||
option.
|
option.
|
||||||
@ -195,6 +201,10 @@ database.
|
|||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr amd.conf 5 ,
|
.Xr amd.conf 5 ,
|
||||||
.Xr amd 8
|
.Xr amd 8
|
||||||
|
.Sh HISTORY
|
||||||
|
.Nm Amq
|
||||||
|
first appeared in
|
||||||
|
.Bx 4.4 .
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
||||||
Department of Computing, Imperial College, London, UK.
|
Department of Computing, Imperial College, London, UK.
|
||||||
@ -208,7 +218,3 @@ are listed in the
|
|||||||
.Nm AUTHORS
|
.Nm AUTHORS
|
||||||
file distributed with
|
file distributed with
|
||||||
.Nm am-utils .
|
.Nm am-utils .
|
||||||
.Sh HISTORY
|
|
||||||
.Nm Amq
|
|
||||||
first appeared in
|
|
||||||
.Bx 4.4 .
|
|
||||||
|
@ -54,17 +54,20 @@
|
|||||||
.Nm
|
.Nm
|
||||||
is used to print the current working directory, adjusted to reflect proper
|
is used to print the current working directory, adjusted to reflect proper
|
||||||
paths that can be reused to go through the automounter for the shortest
|
paths that can be reused to go through the automounter for the shortest
|
||||||
possible path. In particular, the path printed back does not include any
|
possible path.
|
||||||
|
In particular, the path printed back does not include any
|
||||||
of
|
of
|
||||||
.Nm Amd Ns \'s
|
.Nm Amd Ns \'s
|
||||||
local mount points. Using them is unsafe, because
|
local mount points.
|
||||||
|
Using them is unsafe, because
|
||||||
.Nm Amd
|
.Nm Amd
|
||||||
may unmount managed file systems from the mount points, and thus including
|
may unmount managed file systems from the mount points, and thus including
|
||||||
them in paths may not always find the files within.
|
them in paths may not always find the files within.
|
||||||
.Pp
|
.Pp
|
||||||
Without any arguments,
|
Without any arguments,
|
||||||
.Nm
|
.Nm
|
||||||
will print the automounter adjusted current working directory. With any
|
will print the automounter adjusted current working directory.
|
||||||
|
With any
|
||||||
number of arguments, it will print the adjusted
|
number of arguments, it will print the adjusted
|
||||||
.Ar path
|
.Ar path
|
||||||
of each one of the
|
of each one of the
|
||||||
|
@ -59,7 +59,8 @@ is a variant of
|
|||||||
.Xr showmount 8
|
.Xr showmount 8
|
||||||
that can delete bogus mount entries in remote
|
that can delete bogus mount entries in remote
|
||||||
.Xr mountd 8
|
.Xr mountd 8
|
||||||
daemons. The actions specified by the options are performed for each
|
daemons.
|
||||||
|
The actions specified by the options are performed for each
|
||||||
.Ar host
|
.Ar host
|
||||||
in turn.
|
in turn.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
@ -76,18 +77,22 @@ from a crash or are the result of improper mount protocol.
|
|||||||
The actuality of mounts is verified using the entries in
|
The actuality of mounts is verified using the entries in
|
||||||
.Pa /etc/mtab .
|
.Pa /etc/mtab .
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Verify remote mounts. Similar to
|
Verify remote mounts.
|
||||||
|
Similar to
|
||||||
.Fl r
|
.Fl r
|
||||||
except that only a notification message is printed for each bogus entry
|
except that only a notification message is printed for each bogus entry
|
||||||
found. The remote mount table is not changed.
|
found.
|
||||||
|
The remote mount table is not changed.
|
||||||
.It Fl A
|
.It Fl A
|
||||||
Issues a command to the remote mountd declaring that
|
Issues a command to the remote mountd declaring that
|
||||||
.Em all
|
.Em all
|
||||||
of its file systems have been unmounted. This should be used with caution, as
|
of its file systems have been unmounted.
|
||||||
|
This should be used with caution, as
|
||||||
it removes all remote mount entries pertaining to the local system, whether or
|
it removes all remote mount entries pertaining to the local system, whether or
|
||||||
not any file systems are still mounted locally.
|
not any file systems are still mounted locally.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Be quiet. Suppresses error messages due to timeouts and
|
Be quiet.
|
||||||
|
Suppresses error messages due to timeouts and
|
||||||
.Dq Program not Registered ,
|
.Dq Program not Registered ,
|
||||||
i.e., due to remote hosts not supporting RPC or not running
|
i.e., due to remote hosts not supporting RPC or not running
|
||||||
.Nm mountd .
|
.Nm mountd .
|
||||||
@ -118,6 +123,24 @@ server.
|
|||||||
.Xr rmtab 5 ,
|
.Xr rmtab 5 ,
|
||||||
.Xr mountd 8 ,
|
.Xr mountd 8 ,
|
||||||
.Xr showmount 8
|
.Xr showmount 8
|
||||||
|
.Sh HISTORY
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
utility appeared in
|
||||||
|
.Fx 3.0 .
|
||||||
|
.Sh AUTHORS
|
||||||
|
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
||||||
|
Department of Computing, Imperial College, London, UK.
|
||||||
|
.Pp
|
||||||
|
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
||||||
|
Department of Computer Science, Columbia University, New York, USA.
|
||||||
|
.Pp
|
||||||
|
.An Other authors and contributors to
|
||||||
|
.Nm am-utils
|
||||||
|
are listed in the
|
||||||
|
.Nm AUTHORS
|
||||||
|
file distributed with
|
||||||
|
.Nm am-utils .
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
No attempt is made to verify the information in
|
No attempt is made to verify the information in
|
||||||
.Pa /etc/mtab
|
.Pa /etc/mtab
|
||||||
@ -149,7 +172,8 @@ as well this will be handled correctly.
|
|||||||
There is no way to clear a stale entry in a remote
|
There is no way to clear a stale entry in a remote
|
||||||
.Nm mountd
|
.Nm mountd
|
||||||
after the local hostname (or whatever reverse name resolution
|
after the local hostname (or whatever reverse name resolution
|
||||||
returns for it) has been changed. To take care of these cases,
|
returns for it) has been changed.
|
||||||
|
To take care of these cases,
|
||||||
the remote
|
the remote
|
||||||
.Pa /etc/rmtab
|
.Pa /etc/rmtab
|
||||||
file has to be edited and
|
file has to be edited and
|
||||||
@ -158,23 +182,6 @@ restarted.
|
|||||||
.Pp
|
.Pp
|
||||||
The RPC timeouts for
|
The RPC timeouts for
|
||||||
.Nm mountd
|
.Nm mountd
|
||||||
calls can only be changed by recompiling. The defaults are 2 seconds
|
calls can only be changed by recompiling.
|
||||||
|
The defaults are 2 seconds
|
||||||
for client handle creation and 5 seconds for RPC calls.
|
for client handle creation and 5 seconds for RPC calls.
|
||||||
.Sh AUTHORS
|
|
||||||
.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
|
|
||||||
Department of Computing, Imperial College, London, UK.
|
|
||||||
.Pp
|
|
||||||
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
|
||||||
Department of Computer Science, Columbia University, New York, USA.
|
|
||||||
.Pp
|
|
||||||
.An Other authors and contributors to
|
|
||||||
.Nm am-utils
|
|
||||||
are listed in the
|
|
||||||
.Nm AUTHORS
|
|
||||||
file distributed with
|
|
||||||
.Nm am-utils .
|
|
||||||
.Sh HISTORY
|
|
||||||
The
|
|
||||||
.Nm
|
|
||||||
utility appeared in
|
|
||||||
.Fx 3.0 .
|
|
||||||
|
@ -74,12 +74,14 @@ The following options are available:
|
|||||||
.Bl -tag -width Fl
|
.Bl -tag -width Fl
|
||||||
.It Fl a Ar autodir
|
.It Fl a Ar autodir
|
||||||
Specifies the directory name in which to place the automounter's
|
Specifies the directory name in which to place the automounter's
|
||||||
mount points. This defaults to
|
mount points.
|
||||||
|
This defaults to
|
||||||
.Pa /a .
|
.Pa /a .
|
||||||
.It Fl b Ar bootparams_prefix
|
.It Fl b Ar bootparams_prefix
|
||||||
Specifies the prefix for the
|
Specifies the prefix for the
|
||||||
.Pa bootparams
|
.Pa bootparams
|
||||||
file. If it is not given, then the file will not be generated.
|
file.
|
||||||
|
If it is not given, then the file will not be generated.
|
||||||
The file will be constructed for the destination machine and will be
|
The file will be constructed for the destination machine and will be
|
||||||
placed into a file named
|
placed into a file named
|
||||||
.Pa bootparams
|
.Pa bootparams
|
||||||
@ -91,7 +93,8 @@ diskless client that can boot from the destination machine.
|
|||||||
.It Fl d Ar dumpsets_prefix
|
.It Fl d Ar dumpsets_prefix
|
||||||
Specifies the prefix for the
|
Specifies the prefix for the
|
||||||
.Pa dumpsets
|
.Pa dumpsets
|
||||||
file. If it is not specified, then the file will not be generated.
|
file.
|
||||||
|
If it is not specified, then the file will not be generated.
|
||||||
The file will be for the destination machine and will be placed into a file
|
The file will be for the destination machine and will be placed into a file
|
||||||
named
|
named
|
||||||
.Pa dumpsets
|
.Pa dumpsets
|
||||||
@ -104,7 +107,8 @@ local backup system.
|
|||||||
.It Fl e Ar exports_prefix
|
.It Fl e Ar exports_prefix
|
||||||
Defines the prefix for the
|
Defines the prefix for the
|
||||||
.Pa exports
|
.Pa exports
|
||||||
files. If it is not given, then the file will not be generated.
|
files.
|
||||||
|
If it is not given, then the file will not be generated.
|
||||||
For each machine defined in the configuration files as having disks,
|
For each machine defined in the configuration files as having disks,
|
||||||
and
|
and
|
||||||
.Pa exports
|
.Pa exports
|
||||||
@ -113,17 +117,20 @@ machine, prefixed with the
|
|||||||
.Ar exports_prefix
|
.Ar exports_prefix
|
||||||
string.
|
string.
|
||||||
If a machine is defined as diskless, then no
|
If a machine is defined as diskless, then no
|
||||||
file will be created for it. The files contain entries
|
file will be created for it.
|
||||||
|
The files contain entries
|
||||||
for directories on the machine that may be exported to clients.
|
for directories on the machine that may be exported to clients.
|
||||||
.It Fl f Ar fstabs_prefix
|
.It Fl f Ar fstabs_prefix
|
||||||
This defines the prefix for the
|
This defines the prefix for the
|
||||||
.Pa fstab
|
.Pa fstab
|
||||||
files. The files will only be created if this prefix is defined.
|
files.
|
||||||
|
The files will only be created if this prefix is defined.
|
||||||
For each machine defined in the configuration files, a
|
For each machine defined in the configuration files, a
|
||||||
.Pa fstab
|
.Pa fstab
|
||||||
file is created with the file name determined by prefixing this
|
file is created with the file name determined by prefixing this
|
||||||
.Ar fstabs_prefix
|
.Ar fstabs_prefix
|
||||||
string with the name of the machine. These files contain entries
|
string with the name of the machine.
|
||||||
|
These files contain entries
|
||||||
for file systems and partitions to mount at boot time.
|
for file systems and partitions to mount at boot time.
|
||||||
.It Fl h Ar hostname
|
.It Fl h Ar hostname
|
||||||
Defines the hostname of the destination machine to process for.
|
Defines the hostname of the destination machine to process for.
|
||||||
@ -131,19 +138,24 @@ If this is not specified, it defaults to the local machine name,
|
|||||||
as returned by
|
as returned by
|
||||||
.Xr gethostname 3 .
|
.Xr gethostname 3 .
|
||||||
.It Fl m Ar automounts_prefix
|
.It Fl m Ar automounts_prefix
|
||||||
Defines the prefix for the automounter files. The maps will
|
Defines the prefix for the automounter files.
|
||||||
only be produced if this option is specified. The mount maps
|
The maps will
|
||||||
|
only be produced if this option is specified.
|
||||||
|
The mount maps
|
||||||
suitable for the network defined by the configuration files will
|
suitable for the network defined by the configuration files will
|
||||||
be placed into files with names calculated by prefixing the
|
be placed into files with names calculated by prefixing the
|
||||||
.Ar automounts_prefix
|
.Ar automounts_prefix
|
||||||
string to the name of each map.
|
string to the name of each map.
|
||||||
.It Fl q
|
.It Fl q
|
||||||
Selects quite mode. Only error messages that are generated will
|
Selects quite mode.
|
||||||
|
Only error messages that are generated will
|
||||||
be displayed.
|
be displayed.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Selects verbose mode. When this is activated, more messages
|
Selects verbose mode.
|
||||||
|
When this is activated, more messages
|
||||||
will be displayed, and all information discovered when performing the semantic
|
will be displayed, and all information discovered when performing the semantic
|
||||||
analysis phase will be displayed. Each verbose message
|
analysis phase will be displayed.
|
||||||
|
Each verbose message
|
||||||
is output to the standard output on a line starting with a `#'
|
is output to the standard output on a line starting with a `#'
|
||||||
character.
|
character.
|
||||||
.It Fl D Xo
|
.It Fl D Xo
|
||||||
@ -157,7 +169,8 @@ Equivalent to the
|
|||||||
directive.
|
directive.
|
||||||
.It Fl I Ar dir
|
.It Fl I Ar dir
|
||||||
This option is passed into the preprocessor for the configuration
|
This option is passed into the preprocessor for the configuration
|
||||||
files. It specifies directories in which to find include files.
|
files.
|
||||||
|
It specifies directories in which to find include files.
|
||||||
.It Fl U Ar name
|
.It Fl U Ar name
|
||||||
Removes and initial definition of the symbol
|
Removes and initial definition of the symbol
|
||||||
.Ar name .
|
.Ar name .
|
||||||
|
@ -72,7 +72,8 @@
|
|||||||
.Nm
|
.Nm
|
||||||
is a daemon which implements a file system containing a symbolic link to
|
is a daemon which implements a file system containing a symbolic link to
|
||||||
subdirectory within a user's home directory, depending on the user
|
subdirectory within a user's home directory, depending on the user
|
||||||
which accessed that link. It was primarily designed to redirect
|
which accessed that link.
|
||||||
|
It was primarily designed to redirect
|
||||||
incoming mail to users' home directories, so that it can read from
|
incoming mail to users' home directories, so that it can read from
|
||||||
anywhere.
|
anywhere.
|
||||||
.Pp
|
.Pp
|
||||||
@ -85,11 +86,14 @@ which defaults to
|
|||||||
.Pa /hlfs/home .
|
.Pa /hlfs/home .
|
||||||
Lookups within that directory are handled by
|
Lookups within that directory are handled by
|
||||||
.Nm hlfsd ,
|
.Nm hlfsd ,
|
||||||
which uses the password map to determine how to resolve the lookup. The
|
which uses the password map to determine how to resolve the lookup.
|
||||||
directory will be created if it does not already exist. The symbolic link will
|
The
|
||||||
|
directory will be created if it does not already exist.
|
||||||
|
The symbolic link will
|
||||||
be to the accessing user's home directory, with
|
be to the accessing user's home directory, with
|
||||||
.Ar subdir
|
.Ar subdir
|
||||||
appended to it. If not specified,
|
appended to it.
|
||||||
|
If not specified,
|
||||||
.Ar subdir
|
.Ar subdir
|
||||||
defaults to
|
defaults to
|
||||||
.Pa .hlfsdir .
|
.Pa .hlfsdir .
|
||||||
@ -97,9 +101,11 @@ This directory will also be created if it does not already exist.
|
|||||||
.Pp
|
.Pp
|
||||||
A
|
A
|
||||||
.Er SIGHUP
|
.Er SIGHUP
|
||||||
will flush the internal caches, and reload the password map. It will also
|
will flush the internal caches, and reload the password map.
|
||||||
|
It will also
|
||||||
close and reopen the log file, to enable the original log file to be removed
|
close and reopen the log file, to enable the original log file to be removed
|
||||||
or rotated. A
|
or rotated.
|
||||||
|
A
|
||||||
.Er SIGUSR1
|
.Er SIGUSR1
|
||||||
will cause it to dump its internal table of user IDs and home directories to
|
will cause it to dump its internal table of user IDs and home directories to
|
||||||
the file
|
the file
|
||||||
@ -107,13 +113,16 @@ the file
|
|||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Fl a Ar alt_dir
|
.It Fl a Ar alt_dir
|
||||||
Alternate directory. The name of the directory to which
|
Alternate directory.
|
||||||
|
The name of the directory to which
|
||||||
the symbolic link returned by
|
the symbolic link returned by
|
||||||
.Nm
|
.Nm
|
||||||
will point, if it cannot access the home directory of the user. This
|
will point, if it cannot access the home directory of the user.
|
||||||
|
This
|
||||||
defaults to
|
defaults to
|
||||||
.Pa /var/hlfs .
|
.Pa /var/hlfs .
|
||||||
This directory will be created if it does not exist. It is expected
|
This directory will be created if it does not exist.
|
||||||
|
It is expected
|
||||||
that either users will read these files, or the system administrators
|
that either users will read these files, or the system administrators
|
||||||
will run a script to resend this
|
will run a script to resend this
|
||||||
.Dq lost mail
|
.Dq lost mail
|
||||||
@ -122,19 +131,22 @@ to its owner.
|
|||||||
Caching interval.
|
Caching interval.
|
||||||
.Nm
|
.Nm
|
||||||
will cache the validity of home directories for this interval, in
|
will cache the validity of home directories for this interval, in
|
||||||
seconds. Entries which have been verified within the last
|
seconds.
|
||||||
|
Entries which have been verified within the last
|
||||||
.Ar cache-interval
|
.Ar cache-interval
|
||||||
seconds will not be verified again, since the operation could
|
seconds will not be verified again, since the operation could
|
||||||
be expensive, and the entries are most likely still valid.
|
be expensive, and the entries are most likely still valid.
|
||||||
After the interval has expired,
|
After the interval has expired,
|
||||||
.Nm
|
.Nm
|
||||||
will re-verify the validity of the user's home directory, and
|
will re-verify the validity of the user's home directory, and
|
||||||
reset the cache time-counter. The default value for
|
reset the cache time-counter.
|
||||||
|
The default value for
|
||||||
.Ar cache-interval
|
.Ar cache-interval
|
||||||
is 300 seconds
|
is 300 seconds
|
||||||
(5 minutes).
|
(5 minutes).
|
||||||
.It Fl f
|
.It Fl f
|
||||||
Force fast startup. This option tells
|
Force fast startup.
|
||||||
|
This option tells
|
||||||
.Nm
|
.Nm
|
||||||
to skip startup-time consistency checks such as existence of mount
|
to skip startup-time consistency checks such as existence of mount
|
||||||
directory, alternate spool directory, symlink to be hidden under the
|
directory, alternate spool directory, symlink to be hidden under the
|
||||||
@ -149,15 +161,18 @@ Programs such as
|
|||||||
(which access the mailboxes of other users)
|
(which access the mailboxes of other users)
|
||||||
must be setgid
|
must be setgid
|
||||||
.Va HLFS_GID
|
.Va HLFS_GID
|
||||||
to work properly. The default group is
|
to work properly.
|
||||||
|
The default group is
|
||||||
.Dq hlfs .
|
.Dq hlfs .
|
||||||
If no group is provided, and there is no group
|
If no group is provided, and there is no group
|
||||||
.Dq hlfs ,
|
.Dq hlfs ,
|
||||||
this feature is disabled.
|
this feature is disabled.
|
||||||
.It Fl h
|
.It Fl h
|
||||||
Help. Print a brief help message, and exit.
|
Help.
|
||||||
|
Print a brief help message, and exit.
|
||||||
.It Fl i Ar reload-interval
|
.It Fl i Ar reload-interval
|
||||||
Map-reloading interval. Each
|
Map-reloading interval.
|
||||||
|
Each
|
||||||
.Ar reload-interval
|
.Ar reload-interval
|
||||||
seconds,
|
seconds,
|
||||||
.Nm
|
.Nm
|
||||||
@ -167,18 +182,21 @@ needs the password map for the UIDs and home directory pathnames.
|
|||||||
.Nm
|
.Nm
|
||||||
schedules a
|
schedules a
|
||||||
.Va SIGALRM
|
.Va SIGALRM
|
||||||
to reload the password maps. A
|
to reload the password maps.
|
||||||
|
A
|
||||||
.Va SIGHUP
|
.Va SIGHUP
|
||||||
sent to
|
sent to
|
||||||
.Nm
|
.Nm
|
||||||
will force it to reload the maps immediately. The default value for
|
will force it to reload the maps immediately.
|
||||||
|
The default value for
|
||||||
.Ar reload-interval
|
.Ar reload-interval
|
||||||
is 900 seconds
|
is 900 seconds
|
||||||
(15 minutes).
|
(15 minutes).
|
||||||
.It Fl l Ar logfile
|
.It Fl l Ar logfile
|
||||||
Specify a log file to which
|
Specify a log file to which
|
||||||
.Nm
|
.Nm
|
||||||
will record events. If
|
will record events.
|
||||||
|
If
|
||||||
.Pa logfile
|
.Pa logfile
|
||||||
is the string
|
is the string
|
||||||
.Pa syslog
|
.Pa syslog
|
||||||
@ -186,13 +204,15 @@ then the log messages will be sent to the system log daemon by
|
|||||||
.Xr syslog 3 ,
|
.Xr syslog 3 ,
|
||||||
using the
|
using the
|
||||||
.Va LOG_DAEMON
|
.Va LOG_DAEMON
|
||||||
facility. This is also the default.
|
facility.
|
||||||
|
This is also the default.
|
||||||
.It Fl n
|
.It Fl n
|
||||||
No verify.
|
No verify.
|
||||||
.Nm
|
.Nm
|
||||||
will not verify the validity of the symbolic link it will be
|
will not verify the validity of the symbolic link it will be
|
||||||
returning, or that the user's home directory contains
|
returning, or that the user's home directory contains
|
||||||
sufficient disk-space for spooling. This can speed up
|
sufficient disk-space for spooling.
|
||||||
|
This can speed up
|
||||||
.Nm
|
.Nm
|
||||||
at the cost of possibly returning symbolic links to home
|
at the cost of possibly returning symbolic links to home
|
||||||
directories which are not currently accessible or are full.
|
directories which are not currently accessible or are full.
|
||||||
@ -205,7 +225,8 @@ option overrides the meaning of the
|
|||||||
.Fl c
|
.Fl c
|
||||||
option, since no caching is necessary.
|
option, since no caching is necessary.
|
||||||
.It Fl o Ar mount-options
|
.It Fl o Ar mount-options
|
||||||
Mount options. Mount options which
|
Mount options.
|
||||||
|
Mount options which
|
||||||
.Nm
|
.Nm
|
||||||
will use to mount itself on top of
|
will use to mount itself on top of
|
||||||
.Pa dirname .
|
.Pa dirname .
|
||||||
@ -223,27 +244,35 @@ Outputs the process-id of
|
|||||||
.Nm
|
.Nm
|
||||||
to standard output where it can be saved into a file.
|
to standard output where it can be saved into a file.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Version. Displays version information to standard error.
|
Version.
|
||||||
|
Displays version information to standard error.
|
||||||
.It Fl x Ar log-options
|
.It Fl x Ar log-options
|
||||||
Specify run-time logging options. The options are a comma separated
|
Specify run-time logging options.
|
||||||
|
The options are a comma separated
|
||||||
list chosen from: fatal, error, user, warn, info, map, stats, all.
|
list chosen from: fatal, error, user, warn, info, map, stats, all.
|
||||||
.It Fl C
|
.It Fl C
|
||||||
Force
|
Force
|
||||||
.Nm
|
.Nm
|
||||||
to run on systems that cannot turn off the NFS attribute-cache. Use of
|
to run on systems that cannot turn off the NFS attribute-cache.
|
||||||
|
Use of
|
||||||
this option on those systems is discouraged, as it may result in loss
|
this option on those systems is discouraged, as it may result in loss
|
||||||
or mis-delivery of mail. The option is ignored on systems that can turn
|
or mis-delivery of mail.
|
||||||
|
The option is ignored on systems that can turn
|
||||||
off the attribute-cache.
|
off the attribute-cache.
|
||||||
.It Fl D Ar log-options
|
.It Fl D Ar log-options
|
||||||
Select from a variety of debugging options. Prefixing an
|
Select from a variety of debugging options.
|
||||||
|
Prefixing an
|
||||||
option with the string
|
option with the string
|
||||||
.Qq no
|
.Qq no
|
||||||
reverses the effect of that option. Options are cumulative.
|
reverses the effect of that option.
|
||||||
|
Options are cumulative.
|
||||||
The most useful option is
|
The most useful option is
|
||||||
.Em all .
|
.Em all .
|
||||||
Since this option is only used for debugging other options are not
|
Since this option is only used for debugging other options are not
|
||||||
documented here. A fuller description is available in the program
|
documented here.
|
||||||
source. A
|
A fuller description is available in the program
|
||||||
|
source.
|
||||||
|
A
|
||||||
.Va SIGUSR1
|
.Va SIGUSR1
|
||||||
sent to
|
sent to
|
||||||
.Nm
|
.Nm
|
||||||
@ -256,12 +285,16 @@ Normally,
|
|||||||
.Nm
|
.Nm
|
||||||
will use
|
will use
|
||||||
.Xr getpwent 3
|
.Xr getpwent 3
|
||||||
to read the password database. This option allows you to override the
|
to read the password database.
|
||||||
|
This option allows you to override the
|
||||||
default database, and is useful if you want to map users' mail files to a
|
default database, and is useful if you want to map users' mail files to a
|
||||||
directory other than their home directory. Only the username, uid, and
|
directory other than their home directory.
|
||||||
|
Only the username, uid, and
|
||||||
home-directory fields of the file
|
home-directory fields of the file
|
||||||
.Ar password-file
|
.Ar password-file
|
||||||
are read and checked. All other fields are ignored. The file
|
are read and checked.
|
||||||
|
All other fields are ignored.
|
||||||
|
The file
|
||||||
.Ar password-file
|
.Ar password-file
|
||||||
must be compliant with
|
must be compliant with
|
||||||
.Ux
|
.Ux
|
||||||
@ -301,10 +334,15 @@ user's home directory is accessible.
|
|||||||
.Xr sendmail 8 ,
|
.Xr sendmail 8 ,
|
||||||
.Xr umount 8
|
.Xr umount 8
|
||||||
.Rs
|
.Rs
|
||||||
.%T HLFSD: Delivering Email to Your $HOME
|
.%T HLFSD: Delivering Email to Your $HOME
|
||||||
.%B Proc. LISA-VII, The 7th Usenix System Administration Conference
|
.%B Proc. LISA-VII, The 7th Usenix System Administration Conference
|
||||||
.%D November 1993
|
.%D November 1993
|
||||||
.Re
|
.Re
|
||||||
|
.Sh HISTORY
|
||||||
|
The
|
||||||
|
.Nm
|
||||||
|
utility appeared in
|
||||||
|
.Fx 3.0 .
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
||||||
Department of Computer Science, Columbia University,
|
Department of Computer Science, Columbia University,
|
||||||
@ -312,8 +350,3 @@ New York, USA.
|
|||||||
.Pp
|
.Pp
|
||||||
.An Alexander Dupuy Aq dupuy@smarts.com ,
|
.An Alexander Dupuy Aq dupuy@smarts.com ,
|
||||||
System Management ARTS, White Plains, New York, USA.
|
System Management ARTS, White Plains, New York, USA.
|
||||||
.Sh HISTORY
|
|
||||||
The
|
|
||||||
.Nm
|
|
||||||
utility appeared in
|
|
||||||
.Fx 3.0 .
|
|
||||||
|
@ -57,7 +57,8 @@ hashed database.
|
|||||||
The
|
The
|
||||||
.Fl p
|
.Fl p
|
||||||
option prints the map on standard output instead of generating
|
option prints the map on standard output instead of generating
|
||||||
a database. This is usually used to merge continuation lines
|
a database.
|
||||||
|
This is usually used to merge continuation lines
|
||||||
into one physical line.
|
into one physical line.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr amd.conf 5 ,
|
.Xr amd.conf 5 ,
|
||||||
|
@ -59,22 +59,29 @@ contains runtime configuration information for the
|
|||||||
.Xr amd 8
|
.Xr amd 8
|
||||||
automounter program.
|
automounter program.
|
||||||
.Sh FILE FORMAT
|
.Sh FILE FORMAT
|
||||||
The file consists of sections and parameters. A section begins with the
|
The file consists of sections and parameters.
|
||||||
|
A section begins with the
|
||||||
name of the section in square brackets and continues until the next section
|
name of the section in square brackets and continues until the next section
|
||||||
begins or the end of the file is reached. Sections contain parameters of
|
begins or the end of the file is reached.
|
||||||
|
Sections contain parameters of
|
||||||
the form
|
the form
|
||||||
.Sq name = value .
|
.Sq name = value .
|
||||||
.Pp
|
.Pp
|
||||||
The file is line-based - that is, each newline-terminated line represents
|
The file is line-based - that is, each newline-terminated line represents
|
||||||
either a comment, a section name or a parameter. No line-continuation
|
either a comment, a section name or a parameter.
|
||||||
|
No line-continuation
|
||||||
syntax is available.
|
syntax is available.
|
||||||
.Pp
|
.Pp
|
||||||
Section, parameter names and their values are case sensitive.
|
Section, parameter names and their values are case sensitive.
|
||||||
.Pp
|
.Pp
|
||||||
Only the first equals sign in a parameter is significant. Whitespace before
|
Only the first equals sign in a parameter is significant.
|
||||||
or after the first equals sign is discarded. Leading, trailing and
|
Whitespace before
|
||||||
internal whitespace in section and parameter names is irrelevant. Leading
|
or after the first equals sign is discarded.
|
||||||
and trailing whitespace in a parameter value is discarded. Internal
|
Leading, trailing and
|
||||||
|
internal whitespace in section and parameter names is irrelevant.
|
||||||
|
Leading
|
||||||
|
and trailing whitespace in a parameter value is discarded.
|
||||||
|
Internal
|
||||||
whitespace within a parameter value is not allowed, unless the whole
|
whitespace within a parameter value is not allowed, unless the whole
|
||||||
parameter value is quoted with double quotes as in
|
parameter value is quoted with double quotes as in
|
||||||
.Sq name = Qq some\ value .
|
.Sq name = Qq some\ value .
|
||||||
@ -84,17 +91,21 @@ only whitespace.
|
|||||||
.Pp
|
.Pp
|
||||||
The values following the equals sign in parameters are all either a string
|
The values following the equals sign in parameters are all either a string
|
||||||
(no quotes needed if string does not include spaces) or a boolean, which may
|
(no quotes needed if string does not include spaces) or a boolean, which may
|
||||||
be given as yes/no. Case is significant in all values. Some items such as
|
be given as yes/no.
|
||||||
|
Case is significant in all values.
|
||||||
|
Some items such as
|
||||||
cache timeouts are numeric.
|
cache timeouts are numeric.
|
||||||
.Sh SECTIONS
|
.Sh SECTIONS
|
||||||
.Ss "The [global] section"
|
.Ss "The [global] section"
|
||||||
Parameters in this section either apply to
|
Parameters in this section either apply to
|
||||||
.Nm amd
|
.Nm amd
|
||||||
as a whole, or to all other regular map sections which follow. There
|
as a whole, or to all other regular map sections which follow.
|
||||||
|
There
|
||||||
should be only one global section defined in one configuration file.
|
should be only one global section defined in one configuration file.
|
||||||
.Pp
|
.Pp
|
||||||
It is highly recommended that this section be specified first in the
|
It is highly recommended that this section be specified first in the
|
||||||
configuration file. If it is not, then regular map sections which precede
|
configuration file.
|
||||||
|
If it is not, then regular map sections which precede
|
||||||
it will not use global values defined later.
|
it will not use global values defined later.
|
||||||
.Ss "Regular [/map] sections"
|
.Ss "Regular [/map] sections"
|
||||||
Parameters in regular (non-global) sections apply to a single map entry.
|
Parameters in regular (non-global) sections apply to a single map entry.
|
||||||
@ -106,8 +117,10 @@ amd-managed mount point.
|
|||||||
.Sh PARAMETERS
|
.Sh PARAMETERS
|
||||||
.Ss "Parameters common to all sections"
|
.Ss "Parameters common to all sections"
|
||||||
These parameters can be specified either in the global or a map specific
|
These parameters can be specified either in the global or a map specific
|
||||||
section. Entries specified in a map-specific section override the default
|
section.
|
||||||
value or one defined in the global section. If such a common parameter is
|
Entries specified in a map-specific section override the default
|
||||||
|
value or one defined in the global section.
|
||||||
|
If such a common parameter is
|
||||||
specified only in the global section, it is applicable to all regular map
|
specified only in the global section, it is applicable to all regular map
|
||||||
sections that follow.
|
sections that follow.
|
||||||
.Bl -tag -width 4n
|
.Bl -tag -width 4n
|
||||||
@ -118,20 +131,24 @@ If
|
|||||||
.Qq yes ,
|
.Qq yes ,
|
||||||
then amd's top-level mount points will be browsable to
|
then amd's top-level mount points will be browsable to
|
||||||
.Xr readdir 3
|
.Xr readdir 3
|
||||||
calls. This means you could run for example
|
calls.
|
||||||
|
This means you could run for example
|
||||||
.Xr ls 1
|
.Xr ls 1
|
||||||
and see what keys are available to mount in that directory. Not all entries
|
and see what keys are available to mount in that directory.
|
||||||
|
Not all entries
|
||||||
are made visible to
|
are made visible to
|
||||||
.Xr readdir 3 :
|
.Xr readdir 3 :
|
||||||
the
|
the
|
||||||
.Qq Pa /default
|
.Qq Pa /default
|
||||||
entry, wildcard entries, and those with a
|
entry, wildcard entries, and those with a
|
||||||
.Qq Pa /
|
.Qq Pa /
|
||||||
in them are not included. If you specify
|
in them are not included.
|
||||||
|
If you specify
|
||||||
.Qq full
|
.Qq full
|
||||||
to this option, all but
|
to this option, all but
|
||||||
.Qq Pa /default
|
.Qq Pa /default
|
||||||
will be visible. Note that if you run a command which will attempt to
|
will be visible.
|
||||||
|
Note that if you run a command which will attempt to
|
||||||
.Xr stat 2
|
.Xr stat 2
|
||||||
the entries, such as often done by
|
the entries, such as often done by
|
||||||
.Qq ls -l
|
.Qq ls -l
|
||||||
@ -140,7 +157,8 @@ or
|
|||||||
.Nm amd
|
.Nm amd
|
||||||
will attempt to mount
|
will attempt to mount
|
||||||
.Em every
|
.Em every
|
||||||
entry in that map. This is often called a
|
entry in that map.
|
||||||
|
This is often called a
|
||||||
.Dq mount storm .
|
.Dq mount storm .
|
||||||
.It Ic map_options Xo
|
.It Ic map_options Xo
|
||||||
(string, default no options)
|
(string, default no options)
|
||||||
@ -157,7 +175,8 @@ This is useful to avoid the default map search type used by
|
|||||||
.Nm amd
|
.Nm amd
|
||||||
which takes longer and can have undesired side-effects such as initializing
|
which takes longer and can have undesired side-effects such as initializing
|
||||||
.Tn NIS
|
.Tn NIS
|
||||||
even if not used. Possible values are:
|
even if not used.
|
||||||
|
Possible values are:
|
||||||
.Pp
|
.Pp
|
||||||
.Bl -tag -width "nisplus" -compact
|
.Bl -tag -width "nisplus" -compact
|
||||||
.It Ic file
|
.It Ic file
|
||||||
@ -186,7 +205,8 @@ That is,
|
|||||||
.Nm amd
|
.Nm amd
|
||||||
is an
|
is an
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
server on the map mount points, for the local host it is running on. If
|
server on the map mount points, for the local host it is running on.
|
||||||
|
If
|
||||||
.Qq autofs
|
.Qq autofs
|
||||||
is specified, amd will log an error and convert it to
|
is specified, amd will log an error and convert it to
|
||||||
.Tn NFS .
|
.Tn NFS .
|
||||||
@ -195,7 +215,8 @@ is specified, amd will log an error and convert it to
|
|||||||
.Xc
|
.Xc
|
||||||
This provides a
|
This provides a
|
||||||
(colon-delimited)
|
(colon-delimited)
|
||||||
search path for file maps. Using a search path, sites can allow for
|
search path for file maps.
|
||||||
|
Using a search path, sites can allow for
|
||||||
local map customizations and overrides, and can query distributed maps in
|
local map customizations and overrides, and can query distributed maps in
|
||||||
several locations as needed.
|
several locations as needed.
|
||||||
.El
|
.El
|
||||||
@ -250,10 +271,12 @@ The
|
|||||||
.Qq mem
|
.Qq mem
|
||||||
option alone can be turned on via
|
option alone can be turned on via
|
||||||
.Fl -enable-debug Ns = Ns Ic mem .
|
.Fl -enable-debug Ns = Ns Ic mem .
|
||||||
Otherwise debugging options are ignored. Options are comma delimited, and can
|
Otherwise debugging options are ignored.
|
||||||
|
Options are comma delimited, and can
|
||||||
be preceded by the string
|
be preceded by the string
|
||||||
.Qq no
|
.Qq no
|
||||||
to negate their meaning. You can get the list of supported debugging options
|
to negate their meaning.
|
||||||
|
You can get the list of supported debugging options
|
||||||
by running
|
by running
|
||||||
.Nm amd Fl v .
|
.Nm amd Fl v .
|
||||||
Possible values are:
|
Possible values are:
|
||||||
@ -301,9 +324,11 @@ have exceeded their cached times.
|
|||||||
If
|
If
|
||||||
.Qq yes ,
|
.Qq yes ,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will perform RPC authentication using fully-qualified host names. This is
|
will perform RPC authentication using fully-qualified host names.
|
||||||
|
This is
|
||||||
necessary for some systems, and especially when performing cross-domain
|
necessary for some systems, and especially when performing cross-domain
|
||||||
mounting. For this function to work, the
|
mounting.
|
||||||
|
For this function to work, the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
variable
|
variable
|
||||||
.Va ${hostd}
|
.Va ${hostd}
|
||||||
@ -321,7 +346,8 @@ Same as the
|
|||||||
.Fl k
|
.Fl k
|
||||||
option to
|
option to
|
||||||
.Nm amd .
|
.Nm amd .
|
||||||
Allows you to override the kernel-architecture of your system. Useful for
|
Allows you to override the kernel-architecture of your system.
|
||||||
|
Useful for
|
||||||
example on Sun
|
example on Sun
|
||||||
(Sparc)
|
(Sparc)
|
||||||
machines, where you can build one
|
machines, where you can build one
|
||||||
@ -360,7 +386,8 @@ Same as the
|
|||||||
.Fl d
|
.Fl d
|
||||||
option to
|
option to
|
||||||
.Nm amd .
|
.Nm amd .
|
||||||
Specify the local domain name. If this option is not given the domain name is
|
Specify the local domain name.
|
||||||
|
If this option is not given the domain name is
|
||||||
determined from the hostname by removing the first component of the
|
determined from the hostname by removing the first component of the
|
||||||
fully-qualified host name.
|
fully-qualified host name.
|
||||||
.It Ic log_file Xo (string, default= Ns Pa /dev/stderr )
|
.It Ic log_file Xo (string, default= Ns Pa /dev/stderr )
|
||||||
@ -371,11 +398,13 @@ option to
|
|||||||
.Nm amd .
|
.Nm amd .
|
||||||
Specify a file name to log
|
Specify a file name to log
|
||||||
.Nm amd
|
.Nm amd
|
||||||
events to. If the string
|
events to.
|
||||||
|
If the string
|
||||||
.Pa /dev/stderr
|
.Pa /dev/stderr
|
||||||
is specified,
|
is specified,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will send its events to the standard error file descriptor. IF the string
|
will send its events to the standard error file descriptor.
|
||||||
|
IF the string
|
||||||
.Pa syslog
|
.Pa syslog
|
||||||
is given,
|
is given,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
@ -384,7 +413,8 @@ will record its events with the system logger
|
|||||||
The default syslog facility used is
|
The default syslog facility used is
|
||||||
.Ev LOG_DAEMON .
|
.Ev LOG_DAEMON .
|
||||||
If you wish to change it, append its name to the log file name, delimited by a
|
If you wish to change it, append its name to the log file name, delimited by a
|
||||||
single colon. For example, if
|
single colon.
|
||||||
|
For example, if
|
||||||
.Pa logfile
|
.Pa logfile
|
||||||
is the string
|
is the string
|
||||||
.Qq syslog:local7
|
.Qq syslog:local7
|
||||||
@ -407,7 +437,8 @@ Specify any logging options for
|
|||||||
.Nm amd .
|
.Nm amd .
|
||||||
Options are comma delimited, and can be preceded by the string
|
Options are comma delimited, and can be preceded by the string
|
||||||
.Dq no
|
.Dq no
|
||||||
to negate their meaning. The
|
to negate their meaning.
|
||||||
|
The
|
||||||
.Dq debug
|
.Dq debug
|
||||||
logging option is only available if am-utils was configured with
|
logging option is only available if am-utils was configured with
|
||||||
.Fl -enable-debug .
|
.Fl -enable-debug .
|
||||||
@ -440,10 +471,13 @@ warnings
|
|||||||
.It Ic nfs_proto Xo
|
.It Ic nfs_proto Xo
|
||||||
(string, default to trying version tcp then udp)
|
(string, default to trying version tcp then udp)
|
||||||
.Xc
|
.Xc
|
||||||
By default, amd tries TCP and then UDP. This option forces the overall
|
By default, amd tries TCP and then UDP.
|
||||||
|
This option forces the overall
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
protocol used to TCP or UDP. It overrides what is in the amd maps, and is
|
protocol used to TCP or UDP.
|
||||||
useful when amd is compiled with NFSv3 support that may not be stable. With
|
It overrides what is in the amd maps, and is
|
||||||
|
useful when amd is compiled with NFSv3 support that may not be stable.
|
||||||
|
With
|
||||||
this option you can turn off the complete usage of NFSv3 dynamically
|
this option you can turn off the complete usage of NFSv3 dynamically
|
||||||
(without having to recompile amd) until such time as NFSv3 support is
|
(without having to recompile amd) until such time as NFSv3 support is
|
||||||
desired again.
|
desired again.
|
||||||
@ -478,29 +512,36 @@ The values of the
|
|||||||
.Ic nfs_retransmit_counter
|
.Ic nfs_retransmit_counter
|
||||||
and the
|
and the
|
||||||
.Ic nfs_retry_interval
|
.Ic nfs_retry_interval
|
||||||
parameters change the overall retry interval. Too long an interval gives
|
parameters change the overall retry interval.
|
||||||
|
Too long an interval gives
|
||||||
poor interactive response; too short an interval causes excessive retries.
|
poor interactive response; too short an interval causes excessive retries.
|
||||||
.It Ic nfs_allow_insecure_port Xo
|
.It Ic nfs_allow_insecure_port Xo
|
||||||
(string, default=no).
|
(string, default=no).
|
||||||
.Xc
|
.Xc
|
||||||
Normally amd will refuse requests coming from unprivileged ports (i.e.
|
Normally amd will refuse requests coming from unprivileged ports (i.e.
|
||||||
ports >= 1024 on Unix systems), so that only privileged users and the kernel
|
ports >= 1024 on Unix systems), so that only privileged users and the kernel
|
||||||
can send NFS requests to it. However, some kernels (certain versions of
|
can send NFS requests to it.
|
||||||
|
However, some kernels (certain versions of
|
||||||
Darwin, MacOS X, and Linux) have bugs that cause them to use unprivileged
|
Darwin, MacOS X, and Linux) have bugs that cause them to use unprivileged
|
||||||
ports in certain situations, which causes amd to stop dead in its
|
ports in certain situations, which causes amd to stop dead in its
|
||||||
tracks. This parameter allows amd to operate normally even on such systems,
|
tracks.
|
||||||
at the expense of a slight decrease in the security of its operations. If
|
This parameter allows amd to operate normally even on such systems,
|
||||||
|
at the expense of a slight decrease in the security of its operations.
|
||||||
|
If
|
||||||
you see messages like "ignoring request from foo:1234, port not reserved"
|
you see messages like "ignoring request from foo:1234, port not reserved"
|
||||||
in your amd log, try enabling this parameter and give it another go.
|
in your amd log, try enabling this parameter and give it another go.
|
||||||
.It Ic nfs_vers Xo
|
.It Ic nfs_vers Xo
|
||||||
(numeric, default to trying version 3 then 2)
|
(numeric, default to trying version 3 then 2)
|
||||||
.Xc
|
.Xc
|
||||||
By default, amd tries version 3 and then version 2. This option forces the
|
By default, amd tries version 3 and then version 2.
|
||||||
|
This option forces the
|
||||||
overall
|
overall
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
protocol used to version 3 or 2. It overrides what is in the
|
protocol used to version 3 or 2.
|
||||||
|
It overrides what is in the
|
||||||
amd maps, and is useful when amd is compiled with NFSv3 support that may not
|
amd maps, and is useful when amd is compiled with NFSv3 support that may not
|
||||||
be stable. With this option you can turn off the complete usage of NFSv3
|
be stable.
|
||||||
|
With this option you can turn off the complete usage of NFSv3
|
||||||
dynamically (without having to recompile amd) until such time as NFSv3
|
dynamically (without having to recompile amd) until such time as NFSv3
|
||||||
support is desired again.
|
support is desired again.
|
||||||
.It Ic nis_domain Xo
|
.It Ic nis_domain Xo
|
||||||
@ -516,7 +557,9 @@ Specify an alternative
|
|||||||
.Tn NIS
|
.Tn NIS
|
||||||
domain from which to fetch the
|
domain from which to fetch the
|
||||||
.Tn NIS
|
.Tn NIS
|
||||||
maps. The default is the system domain name. This option is ignored if
|
maps.
|
||||||
|
The default is the system domain name.
|
||||||
|
This option is ignored if
|
||||||
.Tn NIS
|
.Tn NIS
|
||||||
support is not available.
|
support is not available.
|
||||||
.It Ic normalize_hostnames Xo
|
.It Ic normalize_hostnames Xo
|
||||||
@ -530,7 +573,8 @@ If
|
|||||||
.Dq yes ,
|
.Dq yes ,
|
||||||
then the name refered to by
|
then the name refered to by
|
||||||
.Va ${rhost}
|
.Va ${rhost}
|
||||||
is normalized relative to the host database before being used. The effect is
|
is normalized relative to the host database before being used.
|
||||||
|
The effect is
|
||||||
to translate aliases into
|
to translate aliases into
|
||||||
.Qq official
|
.Qq official
|
||||||
names.
|
names.
|
||||||
@ -542,8 +586,10 @@ Same as the
|
|||||||
option to
|
option to
|
||||||
.Nm amd .
|
.Nm amd .
|
||||||
Allows you to override the compiled-in name of the operating
|
Allows you to override the compiled-in name of the operating
|
||||||
system. Useful when the built-in name is not desired for backward
|
system.
|
||||||
compatibility reasons. For example, if the build in name is
|
Useful when the built-in name is not desired for backward
|
||||||
|
compatibility reasons.
|
||||||
|
For example, if the build in name is
|
||||||
.Dq sunos5 ,
|
.Dq sunos5 ,
|
||||||
you can override it to
|
you can override it to
|
||||||
.Dq sos5 ,
|
.Dq sos5 ,
|
||||||
@ -556,20 +602,25 @@ Same as the
|
|||||||
option to
|
option to
|
||||||
.Nm amd .
|
.Nm amd .
|
||||||
Override the compiled-in version number of the operating
|
Override the compiled-in version number of the operating
|
||||||
system. Useful when the built in version is not desired for backward
|
system.
|
||||||
compatibility reasons. For example, if the build in version is
|
Useful when the built in version is not desired for backward
|
||||||
|
compatibility reasons.
|
||||||
|
For example, if the build in version is
|
||||||
.Dq 2.5.1 ,
|
.Dq 2.5.1 ,
|
||||||
you can override it to
|
you can override it to
|
||||||
.Dq 5.5.1 ,
|
.Dq 5.5.1 ,
|
||||||
and use older maps that were written with the latter in mind.
|
and use older maps that were written with the latter in mind.
|
||||||
.It Ic pid_file Xo (string, default= Ns Pa /dev/stdout )
|
.It Ic pid_file Xo (string, default= Ns Pa /dev/stdout )
|
||||||
.Xc
|
.Xc
|
||||||
Specify a file to store the process ID of the running daemon into. If not
|
Specify a file to store the process ID of the running daemon into.
|
||||||
|
If not
|
||||||
specified,
|
specified,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will print its process id only the standard output. Useful for killing
|
will print its process id only the standard output.
|
||||||
|
Useful for killing
|
||||||
.Nm amd
|
.Nm amd
|
||||||
after it had run. Note that the PID of a running
|
after it had run.
|
||||||
|
Note that the PID of a running
|
||||||
.Nm amd
|
.Nm amd
|
||||||
can also be retrieved via
|
can also be retrieved via
|
||||||
.Nm amq Fl p .
|
.Nm amq Fl p .
|
||||||
@ -587,16 +638,19 @@ If
|
|||||||
.Dq yes ,
|
.Dq yes ,
|
||||||
lock the running executable pages of
|
lock the running executable pages of
|
||||||
.Nm amd
|
.Nm amd
|
||||||
into memory. To improve
|
into memory.
|
||||||
|
To improve
|
||||||
.Nm amd Ns 's
|
.Nm amd Ns 's
|
||||||
performance, systems that support the
|
performance, systems that support the
|
||||||
.Xr plock 3
|
.Xr plock 3
|
||||||
call can lock the
|
call can lock the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process into memory. This way there is less chance it that the operating
|
process into memory.
|
||||||
|
This way there is less chance it that the operating
|
||||||
system will schedule, page out, and swap the
|
system will schedule, page out, and swap the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process as needed. This improves
|
process as needed.
|
||||||
|
This improves
|
||||||
.Nm amd Ns 's
|
.Nm amd Ns 's
|
||||||
performance, at the cost of reserving the memory used by the
|
performance, at the cost of reserving the memory used by the
|
||||||
.Nm amd
|
.Nm amd
|
||||||
@ -606,22 +660,26 @@ process
|
|||||||
(numeric, default=300019)
|
(numeric, default=300019)
|
||||||
.Xc
|
.Xc
|
||||||
Specify an alternate Port-mapper RPC program number, other than the official
|
Specify an alternate Port-mapper RPC program number, other than the official
|
||||||
number. This is useful when running multiple
|
number.
|
||||||
|
This is useful when running multiple
|
||||||
.Nm amd
|
.Nm amd
|
||||||
processes. For example, you can run another
|
processes.
|
||||||
|
For example, you can run another
|
||||||
.Nm amd
|
.Nm amd
|
||||||
in
|
in
|
||||||
.Dq test
|
.Dq test
|
||||||
mode, without affecting the primary
|
mode, without affecting the primary
|
||||||
.Nm amd
|
.Nm amd
|
||||||
process in any way. For safety reasons, the alternate program numbers that
|
process in any way.
|
||||||
|
For safety reasons, the alternate program numbers that
|
||||||
can be specified must be in the range 300019-300029, inclusive.
|
can be specified must be in the range 300019-300029, inclusive.
|
||||||
.Nm amq
|
.Nm amq
|
||||||
has an option
|
has an option
|
||||||
.Fl P
|
.Fl P
|
||||||
which can be used to specify an alternate program number of an
|
which can be used to specify an alternate program number of an
|
||||||
.Nm amd
|
.Nm amd
|
||||||
to contact. In this way,
|
to contact.
|
||||||
|
In this way,
|
||||||
.Nm amq
|
.Nm amq
|
||||||
can fully control any number of
|
can fully control any number of
|
||||||
.Nm amd
|
.Nm amd
|
||||||
@ -646,7 +704,8 @@ option to
|
|||||||
.Nm amd ,
|
.Nm amd ,
|
||||||
but the version prints and
|
but the version prints and
|
||||||
.Nm amd
|
.Nm amd
|
||||||
continues to run. If
|
continues to run.
|
||||||
|
If
|
||||||
.Dq yes ,
|
.Dq yes ,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will print its version information string, which includes some configuration
|
will print its version information string, which includes some configuration
|
||||||
@ -662,7 +721,8 @@ If
|
|||||||
.Dq yes ,
|
.Dq yes ,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will scan the mount table to determine which file systems are currently
|
will scan the mount table to determine which file systems are currently
|
||||||
mounted. Whenever one of these would have been auto-mounted,
|
mounted.
|
||||||
|
Whenever one of these would have been auto-mounted,
|
||||||
.Nm amd
|
.Nm amd
|
||||||
inherits it.
|
inherits it.
|
||||||
.It Ic selectors_on_default Xo
|
.It Ic selectors_on_default Xo
|
||||||
@ -673,8 +733,10 @@ If
|
|||||||
then the
|
then the
|
||||||
.Pa /default
|
.Pa /default
|
||||||
entry of maps will be looked for and process any selectors before setting
|
entry of maps will be looked for and process any selectors before setting
|
||||||
defaults for all other keys in that map. Useful when you want to set
|
defaults for all other keys in that map.
|
||||||
different options for a complete map based on some parameters. For example,
|
Useful when you want to set
|
||||||
|
different options for a complete map based on some parameters.
|
||||||
|
For example,
|
||||||
you may want to better the
|
you may want to better the
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
performance over slow slip-based networks as
|
performance over slow slip-based networks as
|
||||||
@ -705,12 +767,14 @@ If
|
|||||||
.Dq yes ,
|
.Dq yes ,
|
||||||
then
|
then
|
||||||
.Nm amd
|
.Nm amd
|
||||||
will attempt to unmount all file systems which it knows about. Normally
|
will attempt to unmount all file systems which it knows about.
|
||||||
|
Normally
|
||||||
.Nm amd
|
.Nm amd
|
||||||
leaves all
|
leaves all
|
||||||
(esp.\&)
|
(esp.\&)
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
mounted file systems intact. Note that
|
mounted file systems intact.
|
||||||
|
Note that
|
||||||
.Nm amd
|
.Nm amd
|
||||||
does not know about file systems mounted before it starts up, unless the
|
does not know about file systems mounted before it starts up, unless the
|
||||||
.Ar restart_mounts
|
.Ar restart_mounts
|
||||||
@ -727,7 +791,8 @@ Name of the map where the keys are located.
|
|||||||
.It Ic tag Xo
|
.It Ic tag Xo
|
||||||
(string, default no tag)
|
(string, default no tag)
|
||||||
.Xc
|
.Xc
|
||||||
Each map entry in the configuration file can be tagged. If no tag is
|
Each map entry in the configuration file can be tagged.
|
||||||
|
If no tag is
|
||||||
specified, that map section will always be processed by
|
specified, that map section will always be processed by
|
||||||
.Nm amd .
|
.Nm amd .
|
||||||
If it is specified, then
|
If it is specified, then
|
||||||
@ -786,6 +851,11 @@ map_name = amd.tftpboot
|
|||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr amd 8 ,
|
.Xr amd 8 ,
|
||||||
.Xr amq 8
|
.Xr amq 8
|
||||||
|
.Sh HISTORY
|
||||||
|
The
|
||||||
|
.Nm amd
|
||||||
|
utility first appeared in
|
||||||
|
.Bx 4.4 .
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
||||||
Department of Computer Science, Columbia University, New York, USA.
|
Department of Computer Science, Columbia University, New York, USA.
|
||||||
@ -796,8 +866,3 @@ Department of Computing, Imperial College, London, UK.
|
|||||||
Other authors and contributers to am-utils are listed in the
|
Other authors and contributers to am-utils are listed in the
|
||||||
.Pa AUTHORS
|
.Pa AUTHORS
|
||||||
file distributed with am-utils.
|
file distributed with am-utils.
|
||||||
.Sh HISTORY
|
|
||||||
The
|
|
||||||
.Nm amd
|
|
||||||
utility first appeared in
|
|
||||||
.Bx 4.4 .
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user