Subject: Re: mfs busted?
To: None <itojun@iijlab.net>
From: Greg Oster <oster@cs.usask.ca>
List: tech-kern
Date: 01/25/2004 21:28:13
itojun@iijlab.net writes:
> 	i've updated the kernel from 1.6ZH to 1.6ZI, and experienced a kernel
> 	panic on mount_mfs (from /etc/fstab).  i'm still using 1.6ZH
> 	newfs/mount_mfs (i'm in process of updating).  are there any important
> 	incompatible changes made to newfs/mount_mfs?  if so, it has to be
> 	documented in doc/UPDATING.

I *think* the problem is an (accidentally?) removed:

 bp->b_dev = vp->v_rdev;

that should still exist before:

 return (VOP_STRATEGY(vp, bp));

in ufs_strategy() in src/sys/ufs/ufs/ufs_vnops.c .  If you add that 
"bp->b_dev = ..." line back in, it should make things work again...


> 	i'm now performing "make build", i will see if it still panics after
> 	newfs/mount_mfs gets updated.
> 
> NetBSD starfruit.itojun.org 1.6ZI NetBSD 1.6ZI (STARFRUIT) #548: Mon Jan 26 1
> 1:38:03 JST 2004  itojun@starfruit.itojun.org:/home/itojun/NetBSD/src/sys/arc
> h/i386/compile/STARFRUIT i386
> 
> 70020 -r-xr-xr-x  2 root  wheel  40408 Jan 14 13:08 /sbin/mount_mfs
> 70020 -r-xr-xr-x  2 root  wheel  40408 Jan 14 13:08 /sbin/newfs
> 
> itojun

Later...

Greg Oster