Don't try to initialize a component label on a failed component.

This commit is contained in:
oster 2000-08-19 18:07:36 +00:00
parent d3b573e04a
commit 3a17c9470d
1 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_netbsdkintf.c,v 1.93 2000/07/14 15:26:29 oster Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.94 2000/08/19 18:07:36 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -1059,6 +1059,7 @@ raidioctl(dev, cmd, data, flag, p)
ci_label.row = row;
for(column=0;column<raidPtr->numCol;column++) {
diskPtr = &raidPtr->Disks[row][column];
if (diskPtr->status != rf_ds_failed) {
ci_label.partitionSize = diskPtr->partitionSize;
ci_label.column = column;
raidwrite_component_label(
@ -1067,6 +1068,7 @@ raidioctl(dev, cmd, data, flag, p)
&ci_label );
}
}
}
return (retcode);
case RAIDFRAME_SET_AUTOCONFIG: