summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-03-20 22:59:26 +0000
committeroster <oster@NetBSD.org>2000-03-20 22:59:26 +0000
commit7f288b4e0dff02783a510e37fa5bce920f851a7f (patch)
tree7c94ff546740b31166468293fdb4ab52acc1de86 /sys/dev/raidframe
parent68e028fe82bec32496a455186c50c4657aaf12c0 (diff)
Just return "100% done" when asked about reconstruction progress on
a RAID0 set.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 026e1fc42ac..cf360799fe1 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -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 @@ raidioctl(dev, cmd, data, flag, p)
/* 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)