cvs commit: src/sys/kern vfs_syscalls.c

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 29 00:44:21 PDT 2003


In message <20030729033236.X14210-100000 at mail.chesapeake.net>, Jeff Roberson wr
ites:

>> >>   Log:
>> >>   Pass the file descriptor index down to vn_open.
>> >
>> >Why?  Was this discussed on arch?
>>
>> So that things like /dev/stream /dev/fd/* and similar can use a
>> less gruesome hack than today, and so that access to devices from
>> userland doesn't have to take the long tour through vnodes.
>>
>
>Yes, I see, but this is a pretty horrific layering violation.  I think we
>should think of the right way to do this instead of doing another gruesome
>hack.  I fear that this is going to snowball out.

I still think it looks a lot better than td_dupfd.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-src mailing list