lkml.org 
[lkml]   [2001]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: tmpfs in 2.4.3 and AC
Date
In linux-kernel, jamagallon@able.es wrote:
: Hi,
:
: tmpfs (or shmfs or whatever name you like) is still different in official
: series (2.4.3) and in ac series. Its a kick in the ass for multiboot,
: as offcial 2.4.3 does not recognise 'tmpfs' in fstab:
:
: shmfs /dev/shm tmpfs ...
:
: Any reason, or is because it has been forgotten ?

There is no tmpfs in vanilla 2.4.3 kernel.

I use this start script to mount tmp/shmfs:

#!/bin/sh

[ -d /dev/shm ] || mkdir -p /dev/shm

shmfs_avail=$(grep -qci 'shmfs' /proc/filesystems || true)
tmpfs_avail=$(grep -qci 'tmpfs' /proc/filesystems || true)
devshm_mounted=$(grep -qci '/dev/shm' /proc/mounts || true)

[ $devshm_mounted = 0 ] || exit 0

if [ $shmfs_avail = 1 ]
then
echo -ne "Mounting shmfs: "
mount none /dev/shm -t shmfs && echo "ok."
exit 0
fi

if [ $tmpfs_avail = 1 ]
then
echo -ne "Mounting tmpfs: "
mount tmpfs /dev/shm -t tmpfs && echo "ok."
fi


--
Daniel Podlejski <underley@underley.eu.org>
... On a dark desert highway Cool wind in my hair
Warm smell of colitas Rising up through the air ...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.044 / U:2.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site