Introduce a function to return the default head separation for RAID 1

sets.  This helps ensure that the sliding status window (coming soon!)
for reconstructs will always be correct.
This commit is contained in:
oster 2008-04-20 20:42:32 +00:00
parent 9abc85a7e2
commit 5654bb482d
3 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_layout.c,v 1.18 2005/12/11 12:23:37 christos Exp $ */
/* $NetBSD: rf_layout.c,v 1.19 2008/04/20 20:42:32 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_layout.c,v 1.18 2005/12/11 12:23:37 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_layout.c,v 1.19 2008/04/20 20:42:32 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@ -244,7 +244,7 @@ static const RF_LayoutSW_t mapsw[] = {
rf_IdentifyStripeRAID1,
rf_RAID1DagSelect,
rf_MapSIDToPSIDRAID1,
NULL,
rf_GetDefaultHeadSepLimitRAID1,
NULL,
NULL, NULL,
rf_SubmitReconBufferRAID1,

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_raid1.c,v 1.30 2007/03/04 06:02:39 christos Exp $ */
/* $NetBSD: rf_raid1.c,v 1.31 2008/04/20 20:42:32 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -33,7 +33,7 @@
*****************************************************************************/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_raid1.c,v 1.30 2007/03/04 06:02:39 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_raid1.c,v 1.31 2008/04/20 20:42:32 oster Exp $");
#include "rf_raid.h"
#include "rf_raid1.h"
@ -700,3 +700,10 @@ out:
#endif
return (retcode);
}
RF_HeadSepLimit_t
rf_GetDefaultHeadSepLimitRAID1(RF_Raid_t *raidPtr)
{
return (10);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_raid1.h,v 1.7 2005/12/11 12:23:37 christos Exp $ */
/* $NetBSD: rf_raid1.h,v 1.8 2008/04/20 20:42:32 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -58,5 +58,6 @@ rf_VerifyParityRAID1(RF_Raid_t * raidPtr, RF_RaidAddr_t raidAddr,
int
rf_SubmitReconBufferRAID1(RF_ReconBuffer_t * rbuf, int keep_int,
int use_committed);
RF_HeadSepLimit_t rf_GetDefaultHeadSepLimitRAID1(RF_Raid_t * raidPtr);
#endif /* !_RF__RF_RAID1_H_ */