Making Linux stat() less evil
Ed Schouten
ed at 80386.nl
Thu Feb 19 12:56:46 PST 2009
Hi folks,
I may have mentioned this earlier, but our Linuxolator's stat()
implementation calls kern_openat(), followed by an
translate_fd_major_minor() to perform a device major/minor number
lookup. This is very evil, because it causes random chardevs to be
opened when you run ls -l /dev.
I propose the following patch:
http://80386.nl/pub/linux-stat.diff
I've copied kern_stat() into the Linuxolator. Not the ideal solution,
but it's better than what we have right now. Comments?
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20090219/a9c3e664/attachment.pgp
More information about the freebsd-emulation
mailing list