Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2009 21:56:45 +0100
From:      Ed Schouten <ed@80386.nl>
To:        freebsd-emulation@FreeBSD.org
Subject:   Making Linux stat() less evil
Message-ID:  <20090219205645.GF19161@hoeg.nl>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@80386.nl>
 WWW: http://80386.nl/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkmdx40ACgkQ52SDGA2eCwVQvgCbBy8Pw8YVnWVteigBGCyAENFf
3RYAn0KrPbaaiYQOfqKrgQNkR5jdD07u
=IttA
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090219205645.GF19161>