When setting up a non-autoconfigured RAID set, fail a component if the

attempt to read its label fails.  OKed by oster@.
This commit is contained in:
jld 2010-03-01 21:10:26 +00:00
parent 6a9056a926
commit b95d388b8c
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_disks.c,v 1.72 2009/11/17 18:54:26 jld Exp $ */
/* $NetBSD: rf_disks.c,v 1.73 2010/03/01 21:10:26 jld Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@ -60,7 +60,7 @@
***************************************************************/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.72 2009/11/17 18:54:26 jld Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.73 2010/03/01 21:10:26 jld Exp $");
#include <dev/raidframe/raidframevar.h>
@ -132,7 +132,9 @@ rf_ConfigureDisks(RF_ShutdownList_t **listp, RF_Raid_t *raidPtr,
goto fail;
if (disks[c].status == rf_ds_optimal) {
raidfetch_component_label(raidPtr, c);
ret = raidfetch_component_label(raidPtr, c);
if (ret)
goto fail;
}
if (disks[c].status != rf_ds_optimal) {