Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/dev/raidframe Pullup: 1.16 -> 1.17. Re-writing par...



details:   https://anonhg.NetBSD.org/src/rev/230d201b3740
branches:  netbsd-1-4
changeset: 468106:230d201b3740
user:      oster <oster%NetBSD.org@localhost>
date:      Wed Apr 07 16:37:50 1999 +0000

description:
Pullup: 1.16 -> 1.17.  Re-writing parity on a RAID 0 now trivially succeeds
and sets the clean bit.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 8cd1ac290f56 -r 230d201b3740 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Wed Apr 07 16:18:21 1999 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Wed Apr 07 16:37:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.16 1999/03/27 01:26:37 oster Exp $        */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.16.2.1 1999/04/07 16:37:50 oster Exp $    */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -966,8 +966,12 @@
                /* initialize all parity */
        case RAIDFRAME_REWRITEPARITY:
 
-               if (raidPtrs[unit]->Layout.map->faultsTolerated == 0)
-                       return (EINVAL);
+               if (raidPtrs[unit]->Layout.map->faultsTolerated == 0) {
+                       /* Parity for RAID 0 is trivially correct */
+                       raidPtrs[unit]->parity_good = RF_RAID_CLEAN;
+                       return(0);
+               }
+
                /* borrow the thread of the requesting process */
                raidPtrs[unit]->proc = p;       /* Blah... :-p GO */
                retcode = rf_RewriteParity(raidPtrs[unit]);



Home | Main Index | Thread Index | Old Index