From ed4d175ee4e824836b69ed4b8b3012ccc6c89ce2 Mon Sep 17 00:00:00 2001 From: oster Date: Thu, 28 Sep 2006 02:39:50 +0000 Subject: Make sure the 'last configured as' field in the component labels are updated each time the component labels are written. --- sys/dev/raidframe/rf_netbsdkintf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') 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 -__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 #include @@ -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, -- cgit