NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/41328: typo in raidframe, rf_config50()
>Number: 41328
>Category: kern
>Synopsis: typo in raidframe, rf_config50()
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 01 23:20:00 +0000 2009
>Originator: Anthony Mallet
>Release: -current
>Organization:
>Environment:
NetBSD cactus 5.99.11 NetBSD 5.99.11 (CACTUS) #1: Sat May 2 01:06:28 CEST 2009
troot@cactus:/usr/obj/sys/arch/i386/compile/CACTUS i386
>Description:
Typo in rf_config50() when copying RF_Config50_s into RF_Config_s
>How-To-Repeat:
Boot a recent, raidframe aware kernel with a raidctl binary before Jan 18 2009.
Kernel fails to configure raid devices with the error:
raid0: Invalid StripeUnitsPerReconstructUnit: 0
RAIDFRAME: failed rf_ConfigureLayout with 22
>Fix:
Index: rf_compat50.c
===================================================================
RCS file: /cvsroot/src/sys/dev/raidframe/rf_compat50.c,v
retrieving revision 1.1
diff -u -r1.1 rf_compat50.c
--- rf_compat50.c 18 Jan 2009 16:37:19 -0000 1.1
+++ rf_compat50.c 1 May 2009 23:12:45 -0000
@@ -152,7 +152,8 @@
sizeof(k_cfg->spare_names));
k_cfg->sectPerSU = k50_cfg->sectPerSU;
- k_cfg->SUsPerPU = k50_cfg->SUsPerRU;
+ k_cfg->SUsPerPU = k50_cfg->SUsPerPU;
+ k_cfg->SUsPerRU = k50_cfg->SUsPerRU;
k_cfg->parityConfig = k50_cfg->parityConfig;
memcpy(k_cfg->diskQueueType, k50_cfg->diskQueueType,
Home |
Main Index |
Thread Index |
Old Index