summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2006-09-28 02:39:50 +0000
committeroster <oster@NetBSD.org>2006-09-28 02:39:50 +0000
commited4d175ee4e824836b69ed4b8b3012ccc6c89ce2 (patch)
tree9c665ff7b73f46b2ef129608f85cba7ef40b0e81 /sys/dev/raidframe
parent78f4bb515478751897f3db130b95ad5f446f2085 (diff)
Make sure the 'last configured as' field in the component labels
are updated each time the component labels are written.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index e100acaae60..635b7250df2 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.213 2006/08/27 05:07:13 christos Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.214 2006/09/28 02:39:50 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.213 2006/08/27 05:07:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.214 2006/09/28 02:39:50 oster Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -2386,6 +2386,9 @@ rf_update_component_labels(RF_Raid_t *raidPtr, int final)
/* bump the counter */
clabel.mod_counter = raidPtr->mod_counter;
+ /* note what unit we are configured as */
+ clabel.last_unit = raidPtr->raidid;
+
raidwrite_component_label(
raidPtr->Disks[c].dev,
raidPtr->raid_cinfo[c].ci_vp,
@@ -2434,6 +2437,7 @@ rf_update_component_labels(RF_Raid_t *raidPtr, int final)
clabel.mod_counter = raidPtr->mod_counter;
clabel.column = scol;
clabel.status = rf_ds_optimal;
+ clabel.last_unit = raidPtr->raidid;
raidwrite_component_label(
raidPtr->Disks[sparecol].dev,