Subject: Re: workaround for FreeBSD binary that hardcodes a device major (was: Re: CVS commit: src/sys/conf)
To: matthew green <firstname.lastname@example.org (David Laight), email@example.com>
From: Emmanuel Dreyfus <firstname.lastname@example.org>
Date: 09/24/2006 09:38:30
David Laight <email@example.com> 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).