summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-03-14 14:53:46 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-03-14 14:53:46 +0000
commitda73a87a463a1daf9cf933463accc56514d2df4b (patch)
treea293212ed4ec988773b25e88e9697b842c458ca9 /usr.sbin
parent34236d507466a91935719866b24a2a9a1b59e7a2 (diff)
document the -n flag (dry-run)
remove info about non-existent -f flag update usage() fixes PR 2541; checked by tedu - thanks. i owe you a favor :) ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bad144/bad144.828
-rw-r--r--usr.sbin/bad144/bad144.c10
2 files changed, 15 insertions, 23 deletions
diff --git a/usr.sbin/bad144/bad144.8 b/usr.sbin/bad144/bad144.8
index 31f5579e72c..aa030ad38f5 100644
--- a/usr.sbin/bad144/bad144.8
+++ b/usr.sbin/bad144/bad144.8
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)bad144.8 8.1 (Berkeley) 6/6/93
-.\" $Id: bad144.8,v 1.11 2003/01/29 16:53:37 jmc Exp $
+.\" $Id: bad144.8,v 1.12 2003/03/14 14:53:45 jmc Exp $
.\"
.Dd June 6, 1993
.Dt BAD144 8
@@ -41,17 +41,17 @@
.Sh SYNOPSIS
.Nm bad144
.Op Fl c
-.Op Fl f
+.Op Fl n
.Op Fl v
.Ar disk
.Oo
-.Ar sno
+.Ar snum
.Op Ar bad ...
.Oc
.Nm bad144
.Fl a
.Op Fl c
-.Op Fl f
+.Op Fl n
.Op Fl v
.Ar disk
.Op Ar bad ...
@@ -72,21 +72,11 @@ the new replacement sectors are cleared.
.It Fl c
Forces an attempt to copy the old sector to the replacement,
and may be useful when replacing an unreliable sector.
-.It Fl f
-For an RP06, RM03, RM05, Fujitsu Eagle,
-or
-.Tn SMD
-disk on a Massbus, the
-.Fl f
-option may be used to mark the new bad sectors as
-.Dq bad
-by reformatting them as unusable sectors.
-This option is required
-.Em unless
-the sectors have already been marked bad,
-or the system will not be notified that it should use the replacement sector.
-This option may be used while running multiuser; it is no longer necessary
-to perform format operations while running single-user.
+.It Fl n
+Make no permanent changes.
+Useful for debugging.
+Implies
+.Fl v .
.It Fl v
The entire process is described as it happens in gory detail if
.Fl v
diff --git a/usr.sbin/bad144/bad144.c b/usr.sbin/bad144/bad144.c
index d49cfa407b6..e8f2abee5e2 100644
--- a/usr.sbin/bad144/bad144.c
+++ b/usr.sbin/bad144/bad144.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bad144.c,v 1.14 2002/06/10 00:40:53 miod Exp $ */
+/* $OpenBSD: bad144.c,v 1.15 2003/03/14 14:53:45 jmc Exp $ */
/*
* Copyright (c) 1980, 1986, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -40,7 +40,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)bad144.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: bad144.c,v 1.14 2002/06/10 00:40:53 miod Exp $";
+static char *rcsid = "$Id: bad144.c,v 1.15 2003/03/14 14:53:45 jmc Exp $";
#endif /* not lint */
/*
@@ -654,13 +654,15 @@ void
usage()
{
fprintf(stderr,
- "usage: bad144 disk [ snum [ bn ... ] ]\n");
+ "usage: bad144 [-c] [-n] [-v] disk [snum [bn ...]]\n");
fprintf(stderr,
"to read or overwrite bad-sector table, e.g.: bad144 hp0\n");
fprintf(stderr,
- "or bad144 -a [ -c ] disk bn ...\n");
+ "or bad144 -a [-c] [-n] [-v] disk [bn ...]\n");
fprintf(stderr, "where options are:\n");
fprintf(stderr, "\t-a add new bad sectors to the table\n");
fprintf(stderr, "\t-c copy original sector to replacement\n");
+ fprintf(stderr, "\t-n make no permanent changes\n");
+ fprintf(stderr, "\t-v be verbose\n");
exit(1);
}