Subject: Re: 'MAKEDEV: ses0: unknown device' on several platforms
To: Hubert Feyrer <>
From: Bill Studenmund <>
List: tech-userlevel
Date: 01/09/2007 18:23:43
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 08, 2007 at 09:46:40PM +0100, Hubert Feyrer wrote:
> I tried upgrading my shark today, and at the end of etcupdate got:
> 	Do you want to rebuild the device nodes in /dev? (y/[n]) y
> 	./MAKEDEV: ses0: unknown device
> 	./MAKEDEV: ses1: unknown device
> 	./MAKEDEV: ses2: unknown device
> 	./MAKEDEV: ses3: unknown device
> Digging a bit, it seems that a line was added to src/etc/MAKEDEV.tmpl tha=
> unconditionally creates the ses0 to ses3 devices on all platforms (as=20
> opposed to only creating them where ses(4) actually exist, as defined by=
> src/sys/arch/*/conf/majors.*). This happened in light of PR 26511.
> I see two solutions for this:
> A) remove the 'makedev ses0 ...' line from src/etc/MAKEDEV.templ and
>    add it to all the src/etc/etc.*/MAKEDEV.conf that have 'ses' in
>    src/sys/arch/*/conf/majors.*
> B) move 'ses' from all the src/sys/arch/*/conf/majors.* files to
>    src/sys/conf/majors.
> Seeing that all the major numbers are different on all platforms, solutio=
> A) seems to be the right thing here.  The patch below makes that change.
> Any comments?

I think (B) is also wrong as not all ports necessarily support scsi cards,=
so the SCSI devices have to be per-port. Yeah, I am having a hard time=20
imagining a port w/o SCSI, but I think some of the older hardware options=
didn't have it.

It'd be neat if we could have some sort of programatic check. Like "Add
this if there's an entry for ses in conf/majors.*". It'd give us a much
cleaner, across-the-board experience. I however don't have time to do it,
so please commit this diff rather than not do something because it isn't
the ideal I just said. :-)

Take care,


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.3 (NetBSD)