summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/disks.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-18 09:02:06 +0000
committerjkh <jkh@FreeBSD.org>1995-05-18 09:02:06 +0000
commit15a64508360e151b76abe310c58ac4eeeaee83ea (patch)
tree17c4597a102f39b64dd8bfa5d02904dde31d810b /usr.sbin/sysinstall/disks.c
parent0856c15479a94dc9f8b3964a85ef6ebf7348894f (diff)
downloadFreeBSD-src-15a64508360e151b76abe310c58ac4eeeaee83ea.zip
FreeBSD-src-15a64508360e151b76abe310c58ac4eeeaee83ea.tar.gz
1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again). 2. Make vsystem() put its output on the debugging fd. 3. DTRT with root filesystem placement - now I see how this has to work (thanks, Poul). 4. Many miscellaneous spelling errors fixed and general cleanup.
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r--usr.sbin/sysinstall/disks.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 22d7879..20f9f11 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.20 1995/05/17 14:39:38 jkh Exp $
+ * $Id: disks.c,v 1.21 1995/05/17 16:16:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -79,7 +79,7 @@ print_chunks(Disk *d)
int row;
int i;
- dialog_clear();
+ clear();
attrset(A_NORMAL);
mvaddstr(0, 0, "Disk name:\t");
attrset(A_REVERSE); addstr(d->name); attrset(A_NORMAL);
@@ -179,7 +179,10 @@ diskPartition(Disk *d)
msg = "Can only scan for bad blocks in FreeBSD partition.";
else if (strncmp(name, "sd", 2) ||
!msgYesNo("This typically makes sense only for ESDI, IDE or MFM drives.\nAre you sure you want to do this on a SCSI disk?"))
- chunk_info[current_chunk]->flags |= CHUNK_BAD144;
+ if (chunk_info[current_chunk]->flags & CHUNK_BAD144)
+ chunk_info[current_chunk]->flags &= ~CHUNK_BAD144;
+ else
+ chunk_info[current_chunk]->flags |= CHUNK_BAD144;
break;
case 'C':
OpenPOWER on IntegriCloud