Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe When setting up a non-autoconfigured RAID ...
details: https://anonhg.NetBSD.org/src/rev/cab47e147195
branches: trunk
changeset: 752588:cab47e147195
user: jld <jld%NetBSD.org@localhost>
date: Mon Mar 01 21:10:26 2010 +0000
description:
When setting up a non-autoconfigured RAID set, fail a component if the
attempt to read its label fails. OKed by oster@.
diffstat:
sys/dev/raidframe/rf_disks.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r ec7568a0a083 -r cab47e147195 sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c Mon Mar 01 21:10:13 2010 +0000
+++ b/sys/dev/raidframe/rf_disks.c Mon Mar 01 21:10:26 2010 +0000
@@ -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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index