NetBSD Problem Report #39371

From  Sun Aug 17 19:59:38 2008
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id C6F4063B877
	for <>; Sun, 17 Aug 2008 19:59:38 +0000 (UTC)
Message-Id: <>
Date: Sun, 17 Aug 2008 19:59:38 +0000 (UTC)
Subject: wapbl should allow mounting "/" even if journal is hosed
X-Send-Pr-Version: www-1.0

>Number:         39371
>Category:       kern
>Synopsis:       wapbl should allow mounting "/" even if journal is hosed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 17 20:00:01 +0000 2008
>Last-Modified:  Fri Jan 16 22:45:01 +0000 2009
>Originator:     Tobias Nygren
>Release:        4.99.72
NetBSD 4.99.72 NetBSD 4.99.72 (GENERIC.x40) #1: Tue Aug 12 12:40:16 CEST 2008 i386
The journal of my root filesystem became corrupt for some reason, leaving me with no sane recovery method:

boot device: wd0
root on wd0a dumps on wd0b
Unrecognized wapbl type: 0x08012180
no file system for wd0 (dev 0x0)
cannot mount root, error = 79
root device (default wd0a): ddb

I had to use ddb to trick the kernel into mounting the root fs without the FS_DOWAPBL flag, after which I could run fsck(8) to recover.

I think we should allow mounting "/" read-only, even if log replay fails.





Responsible-Changed-From-To: kern-bug-people->joerg
Responsible-Changed-When: Wed, 12 Nov 2008 16:04:07 +0000
I'll deal with it.

From: Manuel Bouyer <>
Subject: PR/39371 CVS commit: [netbsd-5] src/sys/dev/raidframe
Date: Fri, 16 Jan 2009 22:43:34 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Fri Jan 16 22:43:34 UTC 2009

 Modified Files:
 	src/sys/dev/raidframe [netbsd-5]: rf_netbsdkintf.c

 Log Message:
 Pull up following revision(s) (requested by oster in ticket #268):
 	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.252
 Implement DIOCCACHESYNC for RAIDframe too,
 should help prevent journal corruption that causes PR#39371

 To generate a diff of this commit:
 cvs rdiff -r1.250 -r1.250.4.1 src/sys/dev/raidframe/rf_netbsdkintf.c

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


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.