aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/disks.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-11-27 14:33:07 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-11-27 14:33:07 +0000
commit4a59084cee58637ba9ad32862ce636d45a028871 (patch)
treee18d70f37bc427ac2d160ba963fdd3a9bed2ed49 /usr.sbin/sysinstall/disks.c
parent3f488715cff7a5fd721fd756a0f1f5ca78b016d0 (diff)
downloadsrc-4a59084cee58637ba9ad32862ce636d45a028871.tar.gz
src-4a59084cee58637ba9ad32862ce636d45a028871.zip
Remove BAD144 support.
Notes
Notes: svn path=/head/; revision=53748
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r--usr.sbin/sysinstall/disks.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index fe4ee828b4a5..182bfaca4c12 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -125,7 +125,7 @@ static void
print_command_summary()
{
mvprintw(14, 0, "The following commands are supported (in upper or lower case):");
- mvprintw(16, 0, "A = Use Entire Disk B = Bad Block Scan C = Create Slice");
+ mvprintw(16, 0, "A = Use Entire Disk C = Create Slice");
mvprintw(17, 0, "D = Delete Slice G = Set Drive Geometry S = Set Bootable");
mvprintw(18, 0, "T = Change Type U = Undo All Changes Q = Finish");
if (!RunningAsInit)
@@ -295,21 +295,6 @@ diskPartition(Device *dev)
clear();
break;
- case 'B':
- if (chunk_info[current_chunk]->type != freebsd)
- msg = "Can only scan for bad blocks in FreeBSD slice.";
- else if (strncmp(d->name, "sd", 2) ||
- strncmp(d->name, "da", 2) ||
- !msgYesNo("This typically makes sense only for ESDI, IDE or MFM drives.\n"
- "Are you sure you want to do this on a SCSI disk?")) {
- if (chunk_info[current_chunk]->flags & CHUNK_BAD144)
- chunk_info[current_chunk]->flags &= ~CHUNK_BAD144;
- else
- chunk_info[current_chunk]->flags |= CHUNK_BAD144;
- }
- clear();
- break;
-
case 'C':
if (chunk_info[current_chunk]->type != unused)
msg = "Slice in use, delete it first or move to an unused one.";
@@ -694,23 +679,6 @@ diskPartitionWrite(dialogMenuItem *self)
/* If we've been through here before, we don't need to do the rest */
if (cp && !strcmp(cp, "written"))
return DITEM_SUCCESS;
-
- /* Now scan for bad blocks, if necessary */
- for (c1 = d->chunks->part; c1; c1 = c1->next) {
- if (c1->flags & CHUNK_BAD144) {
- int ret;
-
- msgNotify("Running bad block scan on slice %s", c1->name);
- if (!Fake) {
- ret = vsystem("bad144 -v /dev/r%s 1234", c1->name);
- if (ret)
- msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret);
- ret = vsystem("bad144 -v -s /dev/r%s", c1->name);
- if (ret)
- msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret);
- }
- }
- }
}
/* Now it's not "yes", but "written" */
variable_set2(DISK_PARTITIONED, "written", 0);