FSMOUNT — User Commands
NAME
fsmount − Check disks and export prefixes
SYNOPSIS
fsmount [options]
OPTIONS
−WCheck disks, but do not write changes.
−fDon’t check disks (fastboot).
−vHave both fsmount and fscheck output verbose information while running (the default).
−nDon’t attach disks or export prefixes.
−pPrint out actions but don’t execute them.
−helpPrint a summary of the command-line options and exit.
−d deviceDirectory
Specifies the directory containing the device files. The default is "/dev/".
−i spriteIDCauses prefixes that this machine will export to be preloaded into the prefix table with spriteID as the server. This prevents the machine from broadcasting for its own prefixes while the disks are being checked.
−fscheck fscheckProg
Use this to specify an alternative fscheck program, i.e., when testing a new fscheck.
−CDon’t conditionally check the disks. The default behavior is to not check the disks if they were just checked by fscheck and we are now rebooting. If the −C flag is present then the disks will be checked regardless.
DESCRIPTION
Fsmount is used during system boot to check the disks for inconsistencies and to export prefixes. It is a replacement for fsattach, and is intented to be used without a mount table. It uses fsinfo to determine what filesystems are on the disks connected to the host, fscheck to check the filesystems found (if they are OFS), and prefix to mount and export them. In this way, disks can change hosts, change prefixes, or change parititioning without having to update a mount table file.
Fsmount does some checking before it prefixes filesystems. If it finds filesystems whose cylinder extents overlap, it will only prefix the larger of the filesystems. If more than one filesystem has the same prefix, it will try to mount those filesystems until one successfully mounts and it will ignore the remainder. If a filesystem has a prefix of a filesystem already in the prefix table, it is ignored.
Currently, fsmount detects and notes root partitions, but does not try to either check or mount them.
Upon completion, fsmount creates a fsmounted file in /hosts/$HOST/fsmounted reporting the filesystems it mounted and exported, and when it did so.
RETURN CODES
Fsmount returns the same error codes as fsattach:
0No error.
1An error was found in the root partition. Reboot the system. See fscheck for details.
2A hard error occurred. There was some problem in either fsattach, fscheck, or prefix that prevented fsattach from completing normally.
3Fscheck returned a soft error indication. See fscheck for details.
4An error was found in the root partition, but the number of consecutive times that fscheck was run and an error found exceeds the limit.
FILES
/boot/cmds/fsinfocommand to list filesystems on disk
/boot/cmds/fscheckcommand to check disks
/hosts/$HOST/∗.fscoutput from fscheck
/bootTmp/.fscheck.outtemporary output from fscheck
/boot/cmds/prefixcommand to mount and export filesystems
/hosts/$HOST/fsmountedreport file for fsmount
KEYWORDS
fsmount, fscheck, prefix, fsinfo, fsdomain, mount, disk, partition, crash, attach, boot
Sprite version 1.0 — December 17, 1992