Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Checking parity re-write status makes no s...
details: https://anonhg.NetBSD.org/src/rev/052738f031db
branches: trunk
changeset: 486708:052738f031db
user: oster <oster%NetBSD.org@localhost>
date: Sat May 27 18:23:27 2000 +0000
description:
Checking parity re-write status makes no sense on RAID 0, but let's
return something reasonable anyway.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 50dcdc252ce8 -r 052738f031db sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sat May 27 17:18:41 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sat May 27 18:23:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.79 2000/05/19 18:54:30 thorpej Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.80 2000/05/27 18:23:27 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1280,8 +1280,10 @@
case RAIDFRAME_CHECK_PARITYREWRITE_STATUS:
if (raidPtr->Layout.map->faultsTolerated == 0) {
- /* This makes no sense on a RAID 0 */
- return(EINVAL);
+ /* This makes no sense on a RAID 0, so tell the
+ user it's done. */
+ *(int *) data = 100;
+ return(0);
}
if (raidPtr->parity_rewrite_in_progress == 1) {
*(int *) data = 100 * raidPtr->parity_rewrite_stripes_done / raidPtr->Layout.numStripe;
Home |
Main Index |
Thread Index |
Old Index