Subject: Re: workaround for FreeBSD binary that hardcodes a device major (was: Re: CVS commit: src/sys/conf)
To: matthew green <david@l8s.co.uk (David Laight), mrg@eterna.com.au>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 09/24/2006 09:38:30
David Laight <david@l8s.co.uk> 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
http://hcpnet.free.fr/pubz
manu@netbsd.org