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

--hUH5gZbnpyIv7Mn4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--hUH5gZbnpyIv7Mn4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

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

--hUH5gZbnpyIv7Mn4--



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