is this wise?
John Woods
john at frog.UUCP
Thu May 11 06:08:00 AEST 1989
In article <12765 at ut-emx.UUCP>, clyde at ut-emx.UUCP (Clyde W. Hoover) writes:
> Deja-vu! In the old days when the ARPANET used NCP and the highest UNIX release
> was V6, (anyone remember 'smalldaemon' and 'largedaemon'?) a
> version of the UIUC networking code worked much like that.
> Can you IMAGINE ... modifying namei to recognize "/dev/network" and not
> actually require all those files to exist?
Yes. I can imagine that. I can even go READ it.
MIT's CHAOSNET implementation for 2.9BSD used exactly the proposed scheme
(except that host IDs were octal numbers). A set-uid device was treated by
namei() as the end of the pathname search, and the device open routine was
handed the remainder of the pathname string.
This migrated into UNOS (my fault, I'm afraid). It actually turns out to
be quite useful for a number of things; for example, a proposal keeps floating
about to reduce the overloading of minor device numbers in our disk channel
interface by having the driver accept names like /dev/cc1/flop/dsqd9s512b
so that you can use any format that the floppy drive is capable of coping
with (and let's not even begin to discuss the 65536 unique SCSI target-IDs
that are potentially available). We've not implemented this yet, since we
keep finding other ways to muddle through, but it would be handy.
Sort of a similar idea crops up in V[89] UNIX, courtesy of the file system
switch. /proc is NOT a table of {filename, inum} pairs in a file somewhere;
the names are recognized by the lookup primitive of the /proc filesystem
handler. Of course, getdents() on /dev/network might prove problematic... :-)
--
John Woods, Charles River Data Systems, Framingham MA, (508) 626-1101
...!decvax!frog!john, john at frog.UUCP, ...!mit-eddie!jfw, jfw at eddie.mit.edu
Fellow cranks!! ...I'm not ALONE!!
More information about the Comp.unix.wizards
mailing list