NetBSD Problem Report #32881
From thorpej@shagadelic.org Mon Feb 20 16:25:21 2006
Return-Path: <thorpej@shagadelic.org>
Received: from mail.shagadelic.org (isc-temp1.netbsd.org [204.152.190.30])
by narn.netbsd.org (Postfix) with ESMTP id 4167863B871
for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Feb 2006 16:25:21 +0000 (UTC)
Message-Id: <20060220162521.162D33CA57D@mail.shagadelic.org>
Date: Mon, 20 Feb 2006 08:25:21 -0800 (PST)
From: thorpej@shagadelic.org
Reply-To: thorpej@shagadelic.org
To: gnats-bugs@netbsd.org
Subject: raidframe should use config_attach_pseudo()
X-Send-Pr-Version: 3.95
>Number: 32881
>Category: kern
>Synopsis: raidframe should use config_attach_pseudo()
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: oster
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Feb 20 16:30:00 +0000 2006
>Closed-Date: Sun Oct 08 02:39:56 +0000 2006
>Last-Modified: Sun Oct 08 02:40:00 +0000 2006
>Originator: Jason R Thorpe
>Release: NetBSD-current 20060220
>Organization:
-- Jason R. Thorpe <thorpej@shagadelic.org>
>Environment:
>Description:
raidframe manually allocates an array of "device" structures
and then fills them in. This is for the purpose of allowing
root-on-raid.
Instead, raidframe should use config_attach_pseudo() to create
raid device instances as the RAID sets are configured (either
via raid-autoconfigure or manually), and then config_detach()
as RAID sets are torn down.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->oster
Responsible-Changed-By: oster@netbsd.org
Responsible-Changed-When: Mon, 20 Feb 2006 22:48:05 +0000
Responsible-Changed-Why:
I look after raidframe. (though if someone else wants to work
on this change-request, be my guest :) )
State-Changed-From-To: open->closed
State-Changed-By: oster@netbsd.org
State-Changed-When: Sun, 08 Oct 2006 02:39:56 +0000
State-Changed-Why:
RAIDframe now uses config_attach_pseudo() and friends.
From: Greg Oster <oster@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/32881 CVS commit: src/sys
Date: Sun, 8 Oct 2006 02:39:01 +0000 (UTC)
Module Name: src
Committed By: oster
Date: Sun Oct 8 02:39:01 UTC 2006
Modified Files:
src/sys/dev/raidframe: rf_netbsdkintf.c
src/sys/kern: kern_subr.c
Log Message:
Re-work some of the initialization code to now use config_attach_pseudo()
and friends. Addresses PR#32881. BOOT_FROM_RAID_HOOKS dies.
More simplification possible now.
To generate a diff of this commit:
cvs rdiff -r1.216 -r1.217 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -r1.145 -r1.146 src/sys/kern/kern_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.