NetBSD Problem Report #41328

From www@NetBSD.org  Fri May  1 23:16:26 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0FB7563C131
	for <gnats-bugs@gnats.netbsd.org>; Fri,  1 May 2009 23:16:26 +0000 (UTC)
Message-Id: <20090501231625.BFB8E63B8A5@www.NetBSD.org>
Date: Fri,  1 May 2009 23:16:25 +0000 (UTC)
From: anthony.mallet@useless-ficus.net
Reply-To: anthony.mallet@useless-ficus.net
To: gnats-bugs@NetBSD.org
Subject: typo in raidframe, rf_config50()
X-Send-Pr-Version: www-1.0

>Number:         41328
>Category:       kern
>Synopsis:       typo in raidframe, rf_config50()
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 01 23:20:00 +0000 2009
>Closed-Date:    Sat May 02 21:11:54 +0000 2009
>Last-Modified:  Sat May 02 21:15:02 +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,

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: oster@NetBSD.org
State-Changed-When: Sat, 02 May 2009 21:11:54 +0000
State-Changed-Why:
Patch was applied.  Thanks!


From: Greg Oster <oster@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41328 CVS commit: src/sys/dev/raidframe
Date: Sat, 2 May 2009 21:11:26 +0000

 Module Name:	src
 Committed By:	oster
 Date:		Sat May  2 21:11:26 UTC 2009

 Modified Files:
 	src/sys/dev/raidframe: rf_compat50.c

 Log Message:
 Fix assignment of SUsPerPU and add SUsPerRU assignment.  Reported by
 and fix from Anthony Mallet in PR#41328.  Thanks!


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/dev/raidframe/rf_compat50.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.