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 pull up rev 1.6 from trunk (requested...



details:   https://anonhg.NetBSD.org/src/rev/2068836dd550
branches:  netbsd-1-4
changeset: 469521:2068836dd550
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Sep 28 04:48:20 1999 +0000

description:
pull up rev 1.6 from trunk (requested by oster):
  Fix an 'off-by-one' error in a RF_ASSERT which meant that a reconstruct
  would panic in the case where the stripe width was 1 block.

diffstat:

 sys/dev/raidframe/rf_reconmap.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b19fd38ab8f1 -r 2068836dd550 sys/dev/raidframe/rf_reconmap.c
--- a/sys/dev/raidframe/rf_reconmap.c   Tue Sep 28 04:47:51 1999 +0000
+++ b/sys/dev/raidframe/rf_reconmap.c   Tue Sep 28 04:48:20 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_reconmap.c,v 1.4 1999/02/05 00:06:16 oster Exp $    */
+/*     $NetBSD: rf_reconmap.c,v 1.4.2.1 1999/09/28 04:48:20 cgd Exp $  */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -140,7 +140,7 @@
        RF_ReconMapListElem_t *p, *pt;
 
        RF_LOCK_MUTEX(mapPtr->mutex);
-       RF_ASSERT(startSector >= 0 && stopSector < mapPtr->sectorsInDisk && stopSector > startSector);
+       RF_ASSERT(startSector >= 0 && stopSector < mapPtr->sectorsInDisk && stopSector >= startSector);
 
        while (startSector <= stopSector) {
                i = startSector / mapPtr->sectorsPerReconUnit;



Home | Main Index | Thread Index | Old Index