1.\" 2.\" Copyright (c) 1997-2014 Erez Zadok 3.\" Copyright (c) 1993 Jan-Simon Pendry. 4.\" Copyright (c) 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. Neither the name of the University nor the names of its contributors 16.\" may be used to endorse or promote products derived from this software 17.\" without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" $FreeBSD: stable/12/contrib/amd/fsinfo/fsinfo.8 308493 2016-11-11 02:42:53Z cy $ 32.\" 33.\" File: am-utils/fsinfo/fsinfo.8 34.\" 35.Dd August 31, 2016 36.Sh NAME 37.Nm fsinfo 38.Nd co-ordinate site-wide file system information 39.Sh SYNOPSIS 40.Nm 41.Op fl qv 42.Op Fl a Ar autodir 43.Op Fl b Ar bootparams 44.Op Fl d Ar dumpsets 45.Op Fl e Ar exports 46.Op Fl f Ar fstabs 47.Op Fl h Ar hostname 48.Op Fl m Ar automounts 49.Op Fl I Ar dir 50.Oo 51.Fl D 52.Ar name Ns Op = Ns Ar string 53.Oc 54.Oo 55.Fl U 56.Ar name Ns Op = Ns Ar string 57.Oc 58.Ar config ... 59.Sh DESCRIPTION 60.Bf -symbolic 61This command is obsolete. 62Users are advised to use 63.Xr autofs 5 64instead. 65.Ef 66.Pp 67The 68.Nm 69utility takes a set of system configuration information, and generates 70a coordinated set of 71.Xr amd 8 , 72.Xr mount 8 73and 74.Xr mountd 8 75configuration files. 76.Pp 77The following options are available: 78.Bl -tag -width Fl 79.It Fl a Ar autodir 80Specifies the directory name in which to place the automounter's 81mount points. 82This defaults to 83.Pa /a . 84.It Fl b Ar bootparams_prefix 85Specifies the prefix for the 86.Pa bootparams 87file. 88If it is not given, then the file will not be generated. 89The file will be constructed for the destination machine and will be 90placed into a file named 91.Pa bootparams 92and prefixed by the 93.Ar bootparams_prefix 94string. 95The file generated contains a list of entries describing each 96diskless client that can boot from the destination machine. 97.It Fl d Ar dumpsets_prefix 98Specifies the prefix for the 99.Pa dumpsets 100file. 101If it is not specified, then the file will not be generated. 102The file will be for the destination machine and will be placed into a file 103named 104.Pa dumpsets 105prefixed by the 106.Ar dumpsets_prefix 107string. 108This file is for use by 109.Tn Imperial College's 110local backup system. 111.It Fl e Ar exports_prefix 112Defines the prefix for the 113.Pa exports 114files. 115If it is not given, then the file will not be generated. 116For each machine defined in the configuration files as having disks, 117and 118.Pa exports 119file is constructed and given a file name determined by the name of the 120machine, prefixed with the 121.Ar exports_prefix 122string. 123If a machine is defined as diskless, then no 124file will be created for it. 125The files contain entries 126for directories on the machine that may be exported to clients. 127.It Fl f Ar fstabs_prefix 128This defines the prefix for the 129.Pa fstab 130files. 131The files will only be created if this prefix is defined. 132For each machine defined in the configuration files, a 133.Pa fstab 134file is created with the file name determined by prefixing this 135.Ar fstabs_prefix 136string with the name of the machine. 137These files contain entries 138for file systems and partitions to mount at boot time. 139.It Fl h Ar hostname 140Defines the hostname of the destination machine to process for. 141If this is not specified, it defaults to the local machine name, 142as returned by 143.Xr gethostname 3 . 144.It Fl m Ar automounts_prefix 145Defines the prefix for the automounter files. 146The maps will 147only be produced if this option is specified. 148The mount maps 149suitable for the network defined by the configuration files will 150be placed into files with names calculated by prefixing the 151.Ar automounts_prefix 152string to the name of each map. 153.It Fl q 154Selects quite mode. 155Only error messages that are generated will 156be displayed. 157.It Fl v 158Selects verbose mode. 159When this is activated, more messages 160will be displayed, and all information discovered when performing the semantic 161analysis phase will be displayed. 162Each verbose message 163is output to the standard output on a line starting with a `#' 164character. 165.It Fl D Xo 166.Ar name Ns Op = Ns Ar string 167.Xc 168Defines a symbol 169.Ar name 170for the preprocessor when reading the configuration files. 171Equivalent to the 172.Em #define 173directive. 174.It Fl I Ar dir 175This option is passed into the preprocessor for the configuration 176files. 177It specifies directories in which to find include files. 178.It Fl U Ar name 179Removes and initial definition of the symbol 180.Ar name . 181Inverse of the 182.Fl D 183option. 184.It Ar config 185One or more configuration files to be passed as input to 186.Nm . 187.El 188.Pp 189The 190.Nm 191command is fully described in the document 192.%T "Amd - The 4.4BSD Automounter" . 193.Sh SEE ALSO 194.Xr amd 8 , 195.Xr mount 8 , 196.Xr mountd 8 197.Pp 198.Dq am-utils 199.Xr info 1 200entry. 201.Rs 202.%A Erez Zadok 203.%B "Linux NFS and Automounter Administration" 204.%O ISBN 0-7821-2739-8 205.%I Sybex 206.%D 2001 207.Re 208.Pp 209.Pa http://www.am-utils.org/ 210.Rs 211.%T Amd \- The 4.4 BSD Automounter 212.Re 213.Sh HISTORY 214The 215.Nm 216command first appeared in 217.Bx 4.4 . 218.Sh AUTHORS 219.An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk , 220Department of Computing, Imperial College, London, UK. 221.Pp 222.An Erez Zadok Aq ezk@cs.sunysb.edu , 223Computer Science Department, Stony Brook University, Stony Brook, New York, USA. 224.Pp 225Other authors and contributors to am-utils are listed in the 226.Pa AUTHORS 227file distributed with am-utils. 228