Subject: Re: amd64 kernel not identifying root filesystem
To: Matt Fleming <mjf@netbsd.org>
From: Andrew Doran <ad@netbsd.org>
List: current-users
Date: 02/02/2008 16:04:59
On Sat, Feb 02, 2008 at 03:45:21PM +0000, Matt Fleming wrote:

> On Sat, Feb 02, 2008 at 03:04:12PM +0000, Andrew Doran wrote:
> > On Sat, Feb 02, 2008 at 02:22:21PM +0000, David Laight wrote:
> > > On Mon, Jan 28, 2008 at 11:15:11AM +0000, David Laight wrote:
> > > > On Sun, Jan 27, 2008 at 06:38:36PM +0000, David Laight wrote:
> > > > > A moderately recent 'current' amd64 kernel (I think from source from
> > > > > saturday) is failing to determine the correct boot device.
> > > > > 
> > > > > It gives:
> > > > > opendisk: can't open dev wd0 (16)
> > > > > opendisk: can't open dev wd0 (16)
> > > > > opendisk: can't open dev wd0 (16)
> > > > > boot device: <unknown>
> > > > > 
> > > > > This is a ASUS A8V delux.
> > > > 
> > > > Some investigation shows that this is (probably) fallout from ad's
> > > > change to disallow multiple specfs_open() of block devices.
> > > 
> > > This still fails on a 4.99.52 kernel.
> > 
> > I've been looking and can't see the problem. What's the common factor here,
> > is it wedges?
> > 
> > Thanks,
> > Andrew
> 
> Attached is a patch that fixes this for me. There was also a panic that
> occurred later on from the assertion in spec_node_destroy() that opencnt
> was 0, this patch fixes it.
> 
> If you give the OK, I'll commit it.

Great, yes please!

Andrew