From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 9 20:25:32 2011 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 26B48106566B for ; Wed, 9 Feb 2011 20:25:32 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id D2DED8FC1F for ; Wed, 9 Feb 2011 20:25:31 +0000 (UTC) Received: from outgoing.leidinger.net (p57B399D0.dip.t-dialin.net [87.179.153.208]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id EC160844012; Wed, 9 Feb 2011 21:25:26 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id 9BA392DF1; Wed, 9 Feb 2011 21:25:22 +0100 (CET) Date: Wed, 9 Feb 2011 21:25:22 +0100 From: Alexander Leidinger To: Andre Albsmeier Message-ID: <20110209212522.00001cb8@unknown> In-Reply-To: <20110106104057.GB59969@curry.mchp.siemens.de> References: <20101230075124.GA12923@curry.mchp.siemens.de> <20101231144800.00005c6d@unknown> <20110101224629.GA30540@curry.mchp.siemens.de> <20110102115021.00000c8b@unknown> <20110105191915.GA43997@curry.mchp.siemens.de> <20110106090130.20784sf1w9verdic@webmail.leidinger.net> <20110106104057.GB59969@curry.mchp.siemens.de> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: EC160844012.A6B58 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1297887927.83055@VT/4XLMGncsllF1cZ/qXLA X-EBL-Spam-Status: No Cc: "freebsd-emulation@freebsd.org" Subject: Re: 7.3-STABLE and Linux version of SIMetrix 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: Wed, 09 Feb 2011 20:25:32 -0000 On Thu, 6 Jan 2011 11:40:57 +0100 Andre Albsmeier wrote: > On Thu, 06-Jan-2011 at 09:01:30 +0100, Alexander Leidinger wrote: > > Quoting Andre Albsmeier (from Wed, 5 > > Jan 2011 20:19:15 +0100): > > > > > Got it running... A short explanation: > > > > > > Linux' shm_open() fails because it wants to find some funky shmfs > > > to construct the full pathname. It starts to search at the default > > > mountpoint which is /dev/shm. If this fails it runs through fstab > > > and searches for shmfs and tmpfs. Whatever it finds will be > > > statfs()'ed to be checked for Linux' fs magic for shmfs > > > (0x01021994). > > > > What does it expect as a filesystem type if it does not find shmfs > > in fstab but tmpfs? If it does not find tmpfs, will it try /tmp > > anyway (but check for some fstype magic)? > > It searches for every mount which is of type tmpfs or shm. > Whatever it finds must have the fs magic SHMFS_SUPER_MAGIC > (0x01021994). It's in sysdeps/unix/sysv/linux/shm_open.c: I committed it with a lot of your above text as the commit log. Bye, Alexander.