Making Linux stat() less evil
Roman Divacky
rdivacky at FreeBSD.org
Fri Feb 20 04:23:05 PST 2009
On Thu, Feb 19, 2009 at 10:27:49PM +0100, Ed Schouten wrote:
> Roman,
>
> After some discussion with kib@ on IRC, I changed the patch a little: I
> added a new function called kern_statat_vnhook(). This function allows
> the Linuxolator to use a hook to modify struct stat, to reduce some
> redundant code:
>
> http://80386.nl/pub/linux-stat.diff
looks ok to me.. I'd just use __predict_false() to the condition
in the kern_statat_vnhook() so we dont pessimise the typical case
I didnt test though (nor I plan to)
More information about the freebsd-emulation
mailing list