NetBSD Problem Report #18135

Received: (qmail 24412 invoked by uid 605); 31 Aug 2002 16:03:05 -0000
Message-Id: <200208311539.g7VFdjQ00330@zelz48.zel.kfa-juelich.de>
Date: Sat, 31 Aug 2002 17:39:45 +0200 (MEST)
From: M.Drochner@fz-juelich.de
Sender: gnats-bugs-owner@netbsd.org
Reply-To: M.Drochner@fz-juelich.de
To: gnats-bugs@gnats.netbsd.org
Subject: dumping to an otherwise unused IDE disk doesn't work
X-Send-Pr-Version: 3.95

>Number:         18135
>Category:       kern
>Synopsis:       dumping to an otherwise unused IDE disk doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 31 16:04:00 +0000 2002
>Closed-Date:    Sat Mar 05 23:05:29 +0000 2005
>Last-Modified:  Sat Mar 05 23:05:29 +0000 2005
>Originator:     Matthias Drochner
>Release:        NetBSD 1.6G
>Organization:
	KFA Juelich
>Environment:
System: NetBSD zelz48 1.6G NetBSD 1.6G (ZELZ48) #17: Sat Aug 31 16:29:55 MEST 2002 drochner@zelz48:/usr/users/drochner/NetBSD-current/sys/arch/i386/compile/ZELZ48 i386
Architecture: i386
Machine: i386
>Description:
	a crashdump to a disk which doesn't have filesystems in use fails
with: "dump device bad" (on i386; on other architectures the diagnostic
message might look different, but the underlying problem is MI).
This is caused by the check:
	/* Make sure it was initialized. */
	if (wd->drvp->state < READY)
		return ENXIO;
in dev/ata/wd.c:1262
If I put a small filesystem onto that disk and mount it, the dump succeeds.
I also suspect that dumps in early startup don't work, whether the disk
das filesystems in use or not. (didn't check this)
>How-To-Repeat:
	dedicate an IDE disk as dump device. look at code
>Fix:
	add some initialisation code to wddump(), or perhaps wdattach()
>Release-Note:
>Audit-Trail:

From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/18135 CVS commit: syssrc/sys/dev/ata
Date: Fri, 27 Sep 2002 20:17:54 +0300 (EEST)

 Module Name:	syssrc
 Committed By:	drochner
 Date:		Fri Sep 27 17:17:54 UTC 2002

 Modified Files:
 	syssrc/sys/dev/ata: wd.c

 Log Message:
 Remove a check whether the drive is initialized before crashdump.
 It prevents dumping on an otherwise unused disk and seems
 unnecessary anyway - the driver will deal with initialization.
 fixes my PR kern/18135


 To generate a diff of this commit:
 cvs rdiff -r1.225 -r1.226 syssrc/sys/dev/ata/wd.c

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

State-Changed-From-To: open->feedback 
State-Changed-By: mycroft 
State-Changed-When: Fri Jun 25 15:50:05 UTC 2004 
State-Changed-Why:  
A change was checked in nearly 2 years ago to address this. 
State-Changed-From-To: feedback->closed
State-Changed-By: chs@netbsd.org
State-Changed-When: Sat, 05 Mar 2005 23:05:29 +0000
State-Changed-Why:
apparently fixed long ago.


>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.