Date: Tue, 15 Mar 2011 13:19:26 +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: <201103151319.p2FDJcGX057243@repoman.freebsd.org>
index | next in thread | raw e-mail
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 <Andre.Albsmeier@siemens.com>
Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com>
Revision Changes Path
1.97.2.2 +9 -1 src/sys/compat/linux/linux_stats.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103151319.p2FDJcGX057243>
