mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Guennadi Liakhovetski <lg@denx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tmpfs disabled in .config but in /proc/filesystems
Date: Fri, 5 Oct 2007 21:49:45 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0710052136460.17084@blonde.wat.veritas.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0710052134180.10392@poirot.grange>

On Fri, 5 Oct 2007, Guennadi Liakhovetski wrote:
> On Fri, 5 Oct 2007, Hugh Dickins wrote:
> > On Fri, 5 Oct 2007, Guennadi Liakhovetski wrote:
> > > Am I running crazy here (some 2.6.23-rc6-ish)?
> > > 
> > > $ zcat /proc/config.gz | grep TMPFS
> > > # CONFIG_TMPFS is not set
> > > $ grep tmpfs /proc/filesystems
> > > nodev   tmpfs
> > 
> > tmpfs (mm/shmem.c) is used by the kernel to support shared memory
> > of various kinds even when CONFIG_TMPFS is not set.  But only when
> > CONFIG_TMPFS=y can users mount a tmpfs as a fully capable filesystem.
> > Confusing, yes: sorry for putting the fear of craziness upon you.
> 
> Oops, sorry, now I remember reading about this... As a matter of fact, the 
> presence in /proc/filesystem - was it a deliberate decision, or 
> technically preferrable or a mistake?

d) None of the above!

I've never really thought about it, but I think it's simply a natural
side-effect of the register_filesystem and vfs_kern_mount it has to
do in order to get the services it needs from the VFS.

If I were to look back in history, I expect I'd find that it used
to display as "shmfs" or "shmemfs" rather than "tmpfs", and that
we adjusted the naming later on.   You might prefer that we hadn't,
or that we registered under both names if CONFIG_TMPFS (maybe we did
do it like that at one stage, I vaguely remember but haven't checked).

> Wouldn't it be more logical to 
> completely hide it from the user then?

Sorry, I find it hard to get excited about!
I'm inclined not to mess around with it now.
With apologies to your sanity ;)

Hugh

  reply	other threads:[~2007-10-05 20:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 14:41 Guennadi Liakhovetski
2007-10-05 15:43 ` Hugh Dickins
2007-10-05 19:36   ` Guennadi Liakhovetski
2007-10-05 20:49     ` Hugh Dickins [this message]
2007-10-06 20:24       ` Jan Engelhardt

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=Pine.LNX.4.64.0710052136460.17084@blonde.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=lg@denx.de \
    --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

all inboxes | Powered by JetHome®