diff options
| author | oster <oster@NetBSD.org> | 2008-04-20 20:42:32 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2008-04-20 20:42:32 +0000 |
| commit | 5654bb482d9fe047d6235fbe359cb70cb297fdf4 (patch) | |
| tree | 740826ece4b1d108cf8d066068ce2831f5d65c99 /sys/dev/raidframe | |
| parent | 9abc85a7e2b76b0c7351f2e35ca930a2a04d0c32 (diff) | |
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.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_layout.c | 6 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_raid1.c | 11 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_raid1.h | 3 |
3 files changed, 14 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_layout.c b/sys/dev/raidframe/rf_layout.c index a6769498867..926029a383c 100644 --- a/sys/dev/raidframe/rf_layout.c +++ b/sys/dev/raidframe/rf_layout.c @@ -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, diff --git a/sys/dev/raidframe/rf_raid1.c b/sys/dev/raidframe/rf_raid1.c index b6f67987278..703a5980785 100644 --- a/sys/dev/raidframe/rf_raid1.c +++ b/sys/dev/raidframe/rf_raid1.c @@ -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); +} + diff --git a/sys/dev/raidframe/rf_raid1.h b/sys/dev/raidframe/rf_raid1.h index 9728706759a..88fa64f3a62 100644 --- a/sys/dev/raidframe/rf_raid1.h +++ b/sys/dev/raidframe/rf_raid1.h @@ -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_ */ |
