Date: Wed, 9 Feb 2011 20:23:22 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/linux linux_stats.c Message-ID: <201102092023.p19KNXjI069355@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
netchild 2011-02-09 20:23:22 UTC FreeBSD src repository Modified files: sys/compat/linux linux_stats.c Log: SVN rev 218497 on 2011-02-09 20:23:22Z by netchild 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 <Andre.Albsmeier@siemens.com> Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com> MFC after: 1 month Revision Changes Path 1.100 +9 -1 src/sys/compat/linux/linux_stats.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102092023.p19KNXjI069355>