Subject: Re: workaround for FreeBSD binary that hardcodes a device major (was: Re: CVS commit: src/sys/conf)
To: matthew green < (David Laight),>
From: Emmanuel Dreyfus <>
List: tech-kern
Date: 09/24/2006 09:38:30
David Laight <> wrote:

> >    2) Use a MD major for twa, and patch freebsd_sys_mknod() so that 187
> >    gets translated into the right major 
> What happens when 187 is allocated for a real device as well?
> How can only some of the accesses get translated?

For twa, it seems we can allocate it as MI major 187. The problem is
twe, which has a hardcoded major in the vendor range. The only generic
answer I have to your question is a per-process device remapping system
(see my other message).

Emmanuel Dreyfus