public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] rootmpfs
@ 2013-04-03 12:30 Rob Landley
  2013-04-03 12:32 ` Rob Landley
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Rob Landley @ 2013-04-03 12:30 UTC (permalink / raw)
  To: linux-kernel

Attached is my quick and dirty hack to make rootfs be tmpfs when  
CONFIG_TMPFS is
enabled. It can't be this easy or somebody would have done it in the  
_eight_years_
since https://lkml.org/lkml/2006/7/31/145

Yes, it's got an #ifdef and out of place prototypes. Yes, it manually  
calls a module
init function and compensates by making it reentrant. But it works, and  
when I
"cat /dev/zero > filename" the filesystem fills _up_ instead of  
panicing the kernel.

So now that I've posted the error, would someone please tell me how I  
_should_ have done it?

Rob

P.S. If I actually change the filesystem type to a name other than  
"rootfs", it panics on the way up because various bits of the kernel  
are looking for that magic name. Sigh.

P.P.S. removing MS_NOUSER is actually intentional, there's a local cray  
patch that does the same thing because otherwise you can't --bind mount  
directories out of this filesystem, which is a thing they wanted to do.

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

end of thread, other threads:[~2013-04-11 17:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 12:30 [RFC] rootmpfs Rob Landley
2013-04-03 12:32 ` Rob Landley
2013-04-05 19:53 ` Byron Stanoszek
2013-04-09 14:52   ` Rob Landley
2013-04-09 17:28     ` Randy Dunlap
2013-04-10 17:23       ` Rob Landley
2013-04-10 13:43 ` Robin Holt
2013-04-11 17:25 ` Lauri Kasanen

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