Subject: Re: dupfd hack and clonable devices
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 11/18/2004 13:39:06
In article <20041118081024.GJ3824@snowdrop.l8s.co.uk>,
David Laight <email@example.com> 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.