Bug#230758: libc6: Work around for /etc/init.d/mountkernfs
At Wed, 10 Mar 2004 22:38:06 +0100,
Djalil Chafai wrote:
> I propose a new version of /etc/init.d/mountkernfs in order to
> support shmfs|tmpfs|ramfs. I'm not sure that it corrects the problem
> in all cases, but it works at least for me with kernel 2.4.25 
> (CONFIG_RAMFS=y and CONFIG_TMPFS is not set).
Unfortunately, I would reject your patch.  Ramfs is not tmpfs.  In 2.3
series Linus put ramfs.  AFAIK, the intension of ramfs is "sample
ram-based filesystem".  It's not Christoph's shmfs/tmpfs which was
intended to provide POSIX shared memory.  And /dev/shm is used for
POSIX shared memory.
Look at sysdeps/unix/sysv/linux/shm_open.c:where_is_shmfs().
	/* Determine where the shmfs is mounted (if at all).  */
	static void
	where_is_shmfs (void)
	{
	...
	  /* The canonical place is /dev/shm.  This is at least what the
	     documentation tells everybody to do.  */
	  if (__statfs (defaultdir, &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC)
Again, ramfs is not tmpfs.
Regards,
-- gotom
Reply to: