public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What's wrong with tmpfs?
@ 2005-10-30 12:24 Rob Landley
  2005-10-30 12:53 ` Jon Masters
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2005-10-30 12:24 UTC (permalink / raw)
  To: linux-kernel, user-mode-linux-devel

Under User Mode Linux in 2.6.14, would someone please explain to me why this 
test:

static int graft_tree(struct vfsmount *mnt, struct nameidata *nd)
{
        int err;

        if (mnt->mnt_sb->s_flags & MS_NOUSER)
                return -EINVAL;

Is triggering when I try to mount tmpfs?  Is this happening for anybody else?  
Shouldn't I be getting a fresh superblock or something?  (Is this just a User 
Mode Linux issue?  Haven't got a spare box set up to boot it on real hardware 
just yet...)

If somebody needs a reproduction sequence, I'm happy to oblige.  In theory 
"mount -t tmpfs /mnt /mnt" should do it, but if it was _that_ simple it 
wouldn't have shipped...

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What's wrong with tmpfs?
  2005-10-30 12:24 What's wrong with tmpfs? Rob Landley
@ 2005-10-30 12:53 ` Jon Masters
  2005-10-30 15:15   ` Jeff Dike
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Masters @ 2005-10-30 12:53 UTC (permalink / raw)
  To: Rob Landley; +Cc: linux-kernel, user-mode-linux-devel

On 10/30/05, Rob Landley <rob@landley.net> wrote:

> If somebody needs a reproduction sequence, I'm happy to oblige.  In theory
> "mount -t tmpfs /mnt /mnt" should do it, but if it was _that_ simple it
> wouldn't have shipped...

I don't see this behaviour on a regular desktop box running 2.6.14.
Guess it's UML specific.

Jon.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What's wrong with tmpfs?
  2005-10-30 12:53 ` Jon Masters
@ 2005-10-30 15:15   ` Jeff Dike
  2005-10-30 20:24     ` Rob Landley
  2005-11-08 17:58     ` Matt Mackall
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Dike @ 2005-10-30 15:15 UTC (permalink / raw)
  To: jonathan; +Cc: Rob Landley, linux-kernel, user-mode-linux-devel

On Sun, Oct 30, 2005 at 12:53:00PM +0000, Jon Masters wrote:
> On 10/30/05, Rob Landley <rob@landley.net> wrote:
> 
> > If somebody needs a reproduction sequence, I'm happy to oblige.  In theory
> > "mount -t tmpfs /mnt /mnt" should do it, but if it was _that_ simple it
> > wouldn't have shipped...
> 
> I don't see this behaviour on a regular desktop box running 2.6.14.
> Guess it's UML specific.

Sorry, but wrong.

IIRC, this triggers when you don't have CONFIG_TMPFS enabled.  If you don't,
you still get it, but you get a version that's only usable in-kernel.

				Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What's wrong with tmpfs?
  2005-10-30 15:15   ` Jeff Dike
@ 2005-10-30 20:24     ` Rob Landley
  2005-11-08 17:58     ` Matt Mackall
  1 sibling, 0 replies; 5+ messages in thread
From: Rob Landley @ 2005-10-30 20:24 UTC (permalink / raw)
  To: Jeff Dike; +Cc: jonathan, linux-kernel, user-mode-linux-devel

On Sunday 30 October 2005 09:15, Jeff Dike wrote:
> On Sun, Oct 30, 2005 at 12:53:00PM +0000, Jon Masters wrote:
> > On 10/30/05, Rob Landley <rob@landley.net> wrote:
> > > If somebody needs a reproduction sequence, I'm happy to oblige.  In
> > > theory "mount -t tmpfs /mnt /mnt" should do it, but if it was _that_
> > > simple it wouldn't have shipped...
> >
> > I don't see this behaviour on a regular desktop box running 2.6.14.
> > Guess it's UML specific.
>
> Sorry, but wrong.
>
> IIRC, this triggers when you don't have CONFIG_TMPFS enabled.  If you
> don't, you still get it, but you get a version that's only usable
> in-kernel.

Yup.  Not CONFIG_TEMPFS.  My bad.

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What's wrong with tmpfs?
  2005-10-30 15:15   ` Jeff Dike
  2005-10-30 20:24     ` Rob Landley
@ 2005-11-08 17:58     ` Matt Mackall
  1 sibling, 0 replies; 5+ messages in thread
From: Matt Mackall @ 2005-11-08 17:58 UTC (permalink / raw)
  To: Jeff Dike; +Cc: jonathan, Rob Landley, linux-kernel, user-mode-linux-devel

On Sun, Oct 30, 2005 at 10:15:06AM -0500, Jeff Dike wrote:
> On Sun, Oct 30, 2005 at 12:53:00PM +0000, Jon Masters wrote:
> > On 10/30/05, Rob Landley <rob@landley.net> wrote:
> > 
> > > If somebody needs a reproduction sequence, I'm happy to oblige.  In theory
> > > "mount -t tmpfs /mnt /mnt" should do it, but if it was _that_ simple it
> > > wouldn't have shipped...
> > 
> > I don't see this behaviour on a regular desktop box running 2.6.14.
> > Guess it's UML specific.
> 
> Sorry, but wrong.
> 
> IIRC, this triggers when you don't have CONFIG_TMPFS enabled.  If you don't,
> you still get it, but you get a version that's only usable in-kernel.

That sounds like a regression. Turning off CONFIG_TMPFS replaces tmpfs
with an aliased ramfs. It should be perfectly usable everywhere that
tmpfs is, with the exception that it's not swap-backed and doesn't
have an size limiting.

-- 
Mathematics is the supreme nostalgia of our time.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-08 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30 12:24 What's wrong with tmpfs? Rob Landley
2005-10-30 12:53 ` Jon Masters
2005-10-30 15:15   ` Jeff Dike
2005-10-30 20:24     ` Rob Landley
2005-11-08 17:58     ` Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox