Subject: Re: dupfd hack and clonable devices
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 11/18/2004 13:39:06
In article <>,
David Laight <> wrote:
>> Would the simple idea of providing specfs with vfs ops, and then
>> backing up the inital vnode and replacing it by a new one with the
>> correct pointers (and notably the correct dev_t number) in spec_open
>> be possible?
>Or do what SVR4 (and probably solaris do) which is to give VOP_OPEN
>and extra parameter so that the FS dependant code can return a
>different vnode from the one that was retirned by the lookup.

I did almost that in 1.5 vnode_if.src. I passed the extra fd.
It was backed out.

>Simplifying it for specfs - allow driver to set an alternate maj/min.
>	David