summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-11-15 03:57:48 +0000
committeroster <oster@NetBSD.org>2002-11-15 03:57:48 +0000
commitad8fd01bdf2f7f8f02c92f1ab4207093e9a1cfdb (patch)
tree7b05d67d5da854c1eaeb36ac29e24693fa9f9893 /sys/dev/raidframe
parenteb0cfdb46925375ce1e5bc169d47ca057ae50f6c (diff)
After a rebuild-in-place, a reconstruct, or a copyback, we should
really be updating the component labels.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_copyback.c5
-rw-r--r--sys/dev/raidframe/rf_reconstruct.c11
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_copyback.c b/sys/dev/raidframe/rf_copyback.c
index 9bd91e67f29..1827e4e4ead 100644
--- a/sys/dev/raidframe/rf_copyback.c
+++ b/sys/dev/raidframe/rf_copyback.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_copyback.c,v 1.20 2002/09/17 03:30:33 oster Exp $ */
+/* $NetBSD: rf_copyback.c,v 1.21 2002/11/15 03:57:48 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -38,7 +38,7 @@
****************************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_copyback.c,v 1.20 2002/09/17 03:30:33 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_copyback.c,v 1.21 2002/11/15 03:57:48 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -236,6 +236,7 @@ rf_CopybackReconstructedData(raidPtr)
raidwrite_component_label( raidPtr->raid_cinfo[frow][fcol].ci_dev,
raidPtr->raid_cinfo[frow][fcol].ci_vp,
&c_label);
+ rf_update_component_labels(raidPtr, RF_NORMAL_COMPONENT_UPDATE);
}
diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c
index c77a2dea791..42843e55409 100644
--- a/sys/dev/raidframe/rf_reconstruct.c
+++ b/sys/dev/raidframe/rf_reconstruct.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconstruct.c,v 1.48 2002/10/18 02:46:37 oster Exp $ */
+/* $NetBSD: rf_reconstruct.c,v 1.49 2002/11/15 03:57:48 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.48 2002/10/18 02:46:37 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.49 2002/11/15 03:57:48 oster Exp $");
#include <sys/time.h>
#include <sys/buf.h>
@@ -374,6 +374,10 @@ rf_ReconstructFailedDiskBasic(raidPtr, row, col)
raidPtr->raid_cinfo[srow][scol].ci_vp,
&c_label);
+
+ rf_update_component_labels(raidPtr,
+ RF_NORMAL_COMPONENT_UPDATE);
+
}
return (rc);
}
@@ -624,6 +628,9 @@ rf_ReconstructInPlace(raidPtr, row, col)
raidPtr->raid_cinfo[row][col].ci_vp,
&c_label);
+ rf_update_component_labels(raidPtr,
+ RF_NORMAL_COMPONENT_UPDATE);
+
}
RF_SIGNAL_COND(raidPtr->waitForReconCond);
return (rc);