From owner-cvs-src-old@FreeBSD.ORG Tue Mar 15 13:19:38 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9143E106564A for ; Tue, 15 Mar 2011 13:19:38 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7BD808FC1B for ; Tue, 15 Mar 2011 13:19:38 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2FDJchN057244 for ; Tue, 15 Mar 2011 13:19:38 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2FDJcGX057243 for cvs-src-old@freebsd.org; Tue, 15 Mar 2011 13:19:38 GMT (envelope-from netchild@repoman.freebsd.org) Message-Id: <201103151319.p2FDJcGX057243@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to netchild@repoman.freebsd.org using -f From: Alexander Leidinger Date: Tue, 15 Mar 2011 13:19:26 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/compat/linux linux_stats.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2011 13:19:38 -0000 netchild 2011-03-15 13:19:26 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/compat/linux linux_stats.c Log: SVN rev 219666 on 2011-03-15 13:19:26Z by netchild MFC r218497: 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). Ideally our tmpfs should deliver this fs magic to Linux processes, but as our tmpfs is considered to be an experimental feature we can not assume that there is always a tmpfs available. To make shared memory work in the Linuxulator, force the fs type of /dev/shm (which can be a symlink) to match what Linux expects. The user is responsible (info has to be added to the linux base ports and the docs) to setup a suitable link for /dev/shm. Noticed by: Andre Albsmeier Submitted by: Andre Albsmeier Revision Changes Path 1.97.2.2 +9 -1 src/sys/compat/linux/linux_stats.c