mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
A couple of tweaks to make bad144 scan run.
This commit is contained in:
parent
f7f27cd415
commit
b8458cd586
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8615
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user