Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Just return "100% done" when asked about r...



details:   https://anonhg.NetBSD.org/src/rev/11b89980bb9c
branches:  trunk
changeset: 483921:11b89980bb9c
user:      oster <oster%NetBSD.org@localhost>
date:      Mon Mar 20 22:59:26 2000 +0000

description:
Just return "100% done" when asked about reconstruction progress on
a RAID0 set.

diffstat:

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

diffs (22 lines):

diff -r 280ad4c27359 -r 11b89980bb9c sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Mon Mar 20 22:57:00 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Mon Mar 20 22:59:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.70 2000/03/07 03:09:47 oster Exp $        */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.71 2000/03/20 22:59:26 oster Exp $        */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -1251,8 +1251,10 @@
                /* return the percentage completion of reconstruction */
        case RAIDFRAME_CHECK_RECON_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);
                }
                row = 0; /* XXX we only consider a single row... */
                if (raidPtr->status[row] != rf_rs_reconstructing)



Home | Main Index | Thread Index | Old Index