summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_raid1.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2008-04-20 20:42:32 +0000
committeroster <oster@NetBSD.org>2008-04-20 20:42:32 +0000
commit5654bb482d9fe047d6235fbe359cb70cb297fdf4 (patch)
tree740826ece4b1d108cf8d066068ce2831f5d65c99 /sys/dev/raidframe/rf_raid1.c
parent9abc85a7e2b76b0c7351f2e35ca930a2a04d0c32 (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/rf_raid1.c')
-rw-r--r--sys/dev/raidframe/rf_raid1.c11
1 files changed, 9 insertions, 2 deletions
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);
+}
+