public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Hua Zhong <hzhong@cisco.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: use shmfs
Date: 16 Dec 2001 00:31:25 -0500	[thread overview]
Message-ID: <1008480693.4514.0.camel@phantasy> (raw)
In-Reply-To: <00c801c185c8$466ebb60$5900a8c0@cisco.com>
In-Reply-To: <00c801c185c8$466ebb60$5900a8c0@cisco.com>

On Sat, 2001-12-15 at 19:26, Hua Zhong wrote:

> Currently I'm using shmfs as a volatile storage. I am using Monta Vista's
> kernel (2.4.2). I added the following line in /etc/fstab:
> 
> tmpfs                   /dev/shm                shm     defaults        0 0
> <snip>
> I cannot write to the filesystem. write returns EINVAL. I can create an
> empty file, however.

It is confusing: tmpfs is used both for abstracting POSIX shared memory
(shm) and for a page-cache-based dynamic RAM disk.  The line above, that
you are adding, is for the shm support.  You need to add another line to
create the tmpfs filesystem at a given mount point.  Example:

tmpfs		/var/cheese	tmpfs	defaults,size=4m	0 0

Would create a tmpfs at /var/cheese.  The (optional) size parameter
specifies a maximum fs size of 4MB.

See Documentation/filesystems/tmpfs.txt for more information.

	Robert Love


      reply	other threads:[~2001-12-16  5:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-16  0:26 use shmfs Hua Zhong
2001-12-16  5:31 ` Robert Love [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1008480693.4514.0.camel@phantasy \
    --to=rml@tech9.net \
    --cc=hzhong@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox