summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-04-28 10:03:36 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-04-28 10:03:36 +0000
commite7bbc8811b44ee79700c5bbff5d4989c46a437eb (patch)
tree103fa37319503b8393967c95173821dccc68fd02 /sys/arch
parent18573c57c78033749c1ea77790ebe384fe2a3e50 (diff)
- sort options
- sync usage() - other minor tweaks
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/stand/sgivol/sgivol.842
-rw-r--r--sys/arch/sgi/stand/sgivol/sgivol.c10
2 files changed, 25 insertions, 27 deletions
diff --git a/sys/arch/sgi/stand/sgivol/sgivol.8 b/sys/arch/sgi/stand/sgivol/sgivol.8
index 5f3316ceeb2..5e4dbf359bd 100644
--- a/sys/arch/sgi/stand/sgivol/sgivol.8
+++ b/sys/arch/sgi/stand/sgivol/sgivol.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sgivol.8,v 1.1 2005/04/27 18:02:16 deraadt Exp $
+.\" $OpenBSD: sgivol.8,v 1.2 2005/04/28 10:03:34 jmc Exp $
.\"
.\" Copyright (c) 2005 Theo de Raadt
.\" All rights reserved.
@@ -26,29 +26,28 @@
.\"
.\"
.Dd April 27, 2005
-.Dt sgivol 8 sgi
+.Dt SGIVOL 8 sgi
.Os
.Sh NAME
.Nm sgivol
.Nd installs a volume header on disk
.Sh SYNOPSIS
.Nm sgivol
-.Op Fl qf
-.Op Fl i
+.Op Fl fq
+.Op Fl d Ar vhfilename
+.Ar disk
+.Nm sgivol
+.Op Fl fiq
.Op Fl h Ar vhsize
.Ar disk
.Nm sgivol
-.Op Fl qf
+.Op Fl fq
.Op Fl r Ar vhfilename Ar diskfilename
.Ar disk
.Nm sgivol
-.Op Fl qf
+.Op Fl fq
.Op Fl w Ar vhfilename Ar diskfilename
.Ar disk
-.Nm sgivol
-.Op Fl qf
-.Op Fl d Ar vhfilename
-.Ar disk
.Sh DESCRIPTION
.Nm
is used to initialize, and then add or remove programs from the
@@ -61,39 +60,39 @@ variety of files inside it, typically boot programs.
.Pp
The options are as follows:
.Bl -tag -width flag_opt
-.It Fl q
-Be quiet about various diagnostic issues.
+.It Fl d Ar vhfilename
+Delete the file
+.Ar vhfilename
+from the filesystem storage space in the volume header.
.It Fl f
Force.
Do not ask yes/no questions.
-.It Fl i
-Initialize a volume header on the supplied device.
.It Fl h Ar vhsize
Choose an alternate volume header size, in (512-byte) disk blocks.
The default is 3135 blocks.
+.It Fl i
+Initialize a volume header on the supplied device.
+.It Fl q
+Be quiet about various diagnostic issues.
.It Fl r Ar vhfilename Ar diskfilename
Locate the file
.Ar diskfilename
in the storage space of the volume header, and copy it to the
standard file
-.Ar vhfilename Ns .
+.Ar vhfilename .
.It Fl w Ar vhfilename Ar diskfilename
Copy the standard file
.Ar vhfilename
to the filesystem storage space in the volume header, placing
it there with the name
-.Ar diskfilename Ns .
-.It Fl d Ar vhfilename
-Delete the file
-.Ar vhfilename
-from the filesystem storage space in the volume header.
+.Ar diskfilename .
.It Ar disk
The name of the disk containing the partition in which the second-stage
boot program resides and the first-stage boot program is to be installed.
This can either be specified in short form (e.g.,
.Sq sd0
or as the explicit device node, such as
-.Pa /dev/rsd0c .
+.Pa /dev/rsd0c ) .
.Pp
Note that you must be in single-user mode or have your kernel in
insecure mode (see the
@@ -113,7 +112,6 @@ The typical use is
# /usr/mdec/sgivol -f -i sd0
# /usr/mdec/sgivol -f -w boot /usr/mdec/boot sd0
.Ed
-.Pp
.Sh SEE ALSO
.Xr disklabel 8 ,
.Xr init 8
diff --git a/sys/arch/sgi/stand/sgivol/sgivol.c b/sys/arch/sgi/stand/sgivol/sgivol.c
index b522c3f8a7d..0e492e7b67c 100644
--- a/sys/arch/sgi/stand/sgivol/sgivol.c
+++ b/sys/arch/sgi/stand/sgivol/sgivol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgivol.c,v 1.4 2005/04/27 07:13:41 deraadt Exp $ */
+/* $OpenBSD: sgivol.c,v 1.5 2005/04/28 10:03:35 jmc Exp $ */
/* $NetBSD: sgivol.c,v 1.8 2003/11/08 04:59:00 sekiya Exp $ */
/*-
@@ -587,10 +587,10 @@ usage(void)
extern char *__progname;
fprintf(stderr,
- "usage: %s [-qf] [-i] [-h vhsize] device\n"
- " %s [-qf] [-r vhfilename diskfilename] device\n"
- " %s [-qf] [-w vhfilename diskfilename] device\n"
- " %s [-qf] [-d vhfilename] device\n",
+ "usage: %s [-fq] [-d vhfilename] disk\n"
+ " %s [-fiq] [-h vhsize] disk\n"
+ " %s [-fq] [-r vhfilename diskfilename] disk\n"
+ " %s [-fq] [-w vhfilename diskfilename] disk\n",
__progname, __progname, __progname, __progname);
exit(1);
}