From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 20 12:25:49 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DCF21065675 for ; Fri, 20 Feb 2009 12:25:49 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id BD6238FC0C for ; Fri, 20 Feb 2009 12:25:48 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 470AF9CB06B; Fri, 20 Feb 2009 13:22:45 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2CLtZPlte--a; Fri, 20 Feb 2009 13:22:32 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 3C32F9CB126; Fri, 20 Feb 2009 13:22:32 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1KCMWj9070970; Fri, 20 Feb 2009 13:22:32 +0100 (CET) (envelope-from rdivacky) Date: Fri, 20 Feb 2009 13:22:32 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20090220122232.GA70879@freebsd.org> References: <20090219205645.GF19161@hoeg.nl> <20090219212749.GI19161@hoeg.nl> <20090220121952.GA70382@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090220121952.GA70382@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: Making Linux stat() less evil X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 12:25:49 -0000 On Fri, Feb 20, 2009 at 01:19:52PM +0100, Roman Divacky wrote: > 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 ^^^ add