brak katalogu w dev? - tmpfs w /dev/shm
Tomasz Pala
gotar w polanet.pl
Wto, 10 Lut 2004, 23:59:05 CET
Configure.help podaje:
CONFIG_TMPFS
[...]
You should mount the file system somewhere to be able to use
POSIX shared memory. Adding the following line to /etc/fstab should
take care of things:
tmpfs /dev/shm tmpfs defaults 0 0
Remember to create the directory that you intend to mount tmpfs on
if necessary (/dev/shm is automagically created if you use devfs).
[...]
The initial permissions of the root directory can be set with the
mount option "mode".
filesystems/tmpfs.txt:
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 (/dev/shm is automagically created if you use devfs).
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)
W związku z tym następujące pytania:
1. czy to w ogóle jest używane i potrzebne? - jeśli tak to należy dodać:
a) katalog do dev,
b) domyślny wpis w fstab.
2. jakie powinny być prawa do tego katalogu? (opcja mode)
--
GoTaR <priv0.onet.pl->gotar>
http://vfmg.sourceforge.net/
Więcej informacji o liście dyskusyjnej pld-devel-pl