Re: кто создаёт /dev/p ts и /dev/shm?
On Sun, Oct 19, 2008 at 11:17:25PM +0400, sergio wrote:
> и тут назрел ещё один вопрос: зачем
> монтировать tmpfs на /dev/shm?
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=blob_plain;f=Documentation/filesystems/tmpfs.txt;hb=HEAD
2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
POSIX shared memory (shm_open, shm_unlink). Adding the following
line to /etc/fstab should take care of this:
tmpfs /dev/shm tmpfs defaults 0 0
Remember to create the directory that you intend to mount tmpfs on
if necessary.
This mount is _not_ needed for SYSV shared memory. The internal
mount is used for that. (In the 2.3 kernel versions it was
necessary to mount the predecessor of tmpfs (shm fs) to use SYSV
shared memory)
--
Andrey V. Kiselev
ICQ# 26871517
Reply to: