Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23680 - /etc/init.d/localmount ignores shmfs
Summary: /etc/init.d/localmount ignores shmfs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-29 03:21 UTC by Olaf Hering
Modified: 2003-10-04 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Hering 2003-06-29 03:21:56 UTC
fstab has an entry like this: 
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).  
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will 
#  use almost no memory if not populated with files) 
# Adding the following line to /etc/fstab should take care of this: 
 
shm                     /dev/shm        shm             defaults                0 0 
 
localmount does a mount -a, but it skips shmfs: 
        ebegin "Mounting local filesystems" 
        mount -at nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm >/dev/null 
        eend $? "Some local filesystem failed to mount" 
 
Why? 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
shmfs enty is ignored 

Expected Results:  
stuff in fstab must be mounted
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-17 14:07:41 UTC
This is what we have in the default fstab:

-------------------------------------
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). 
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none			/dev/shm	tmpfs		defaults		0 0
Comment 2 Olaf Hering 2003-07-17 23:48:36 UTC
yes, shmfs is obsolete, see mm/shmem.c 
Comment 3 Olaf Hering 2003-10-04 11:47:37 UTC
closing