Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Allow getting a component label from a spa...
details: https://anonhg.NetBSD.org/src/rev/8184d867a77a
branches: trunk
changeset: 487145:8184d867a77a
user: oster <oster%NetBSD.org@localhost>
date: Sat Jun 03 16:44:43 2000 +0000
description:
Allow getting a component label from a spare disk.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 881fa54bea97 -r 8184d867a77a sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sat Jun 03 16:14:02 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sat Jun 03 16:44:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.89 2000/06/01 00:50:01 matt Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.90 2000/06/03 16:44:43 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -984,7 +984,8 @@
column = clabel->column;
if ((row < 0) || (row >= raidPtr->numRow) ||
- (column < 0) || (column >= raidPtr->numCol)) {
+ (column < 0) || (column >= raidPtr->numCol +
+ raidPtr->numSpare)) {
RF_Free( clabel, sizeof(RF_ComponentLabel_t));
return(EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index