A couple of tweaks to make bad144 scan run.

This commit is contained in:
phk 1995-05-18 21:58:33 +00:00
parent d09ab032a7
commit d87b1b6d5c
3 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.25 1995/05/18 16:53:52 jkh Exp $
* $Id: install.c,v 1.26 1995/05/18 18:02:30 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -111,15 +111,15 @@ installCommit(char *str)
Write_Disk(d);
/* Now scan for bad blocks, if necessary */
for (c1 = d->chunks; c1; c1 = c1->next) {
for (c1 = d->chunks->part; c1; c1 = c1->next) {
if (c1->flags & CHUNK_BAD144) {
int ret;
msgNotify("Running bad block scan on partition %s", c1->name);
ret = vsystem("bad144 /mnt/dev/%s 1234", c1->name);
ret = vsystem("bad144 -v /dev/%s 1234", c1->name);
if (ret)
msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret);
ret = vsystem("bad144 -v -s /mnt/dev/%s", c1->name);
ret = vsystem("bad144 -v -s /dev/%s", c1->name);
if (ret)
msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret);
}

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.25 1995/05/18 16:53:52 jkh Exp $
* $Id: install.c,v 1.26 1995/05/18 18:02:30 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -111,15 +111,15 @@ installCommit(char *str)
Write_Disk(d);
/* Now scan for bad blocks, if necessary */
for (c1 = d->chunks; c1; c1 = c1->next) {
for (c1 = d->chunks->part; c1; c1 = c1->next) {
if (c1->flags & CHUNK_BAD144) {
int ret;
msgNotify("Running bad block scan on partition %s", c1->name);
ret = vsystem("bad144 /mnt/dev/%s 1234", c1->name);
ret = vsystem("bad144 -v /dev/%s 1234", c1->name);
if (ret)
msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret);
ret = vsystem("bad144 -v -s /mnt/dev/%s", c1->name);
ret = vsystem("bad144 -v -s /dev/%s", c1->name);
if (ret)
msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret);
}

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.25 1995/05/18 16:53:52 jkh Exp $
* $Id: install.c,v 1.26 1995/05/18 18:02:30 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -111,15 +111,15 @@ installCommit(char *str)
Write_Disk(d);
/* Now scan for bad blocks, if necessary */
for (c1 = d->chunks; c1; c1 = c1->next) {
for (c1 = d->chunks->part; c1; c1 = c1->next) {
if (c1->flags & CHUNK_BAD144) {
int ret;
msgNotify("Running bad block scan on partition %s", c1->name);
ret = vsystem("bad144 /mnt/dev/%s 1234", c1->name);
ret = vsystem("bad144 -v /dev/%s 1234", c1->name);
if (ret)
msgConfirm("Bad144 init on %s returned status of %d!", c1->name, ret);
ret = vsystem("bad144 -v -s /mnt/dev/%s", c1->name);
ret = vsystem("bad144 -v -s /dev/%s", c1->name);
if (ret)
msgConfirm("Bad144 scan on %s returned status of %d!", c1->name, ret);
}