Re: [RFC] rootmpfs

2013-04-11 Thread Lauri Kasanen
Rob Landley landley.net> writes: > 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 Hi Rob, We've been using a variation of th

Re: [RFC] rootmpfs

2013-04-10 Thread Rob Landley
On 04/09/2013 12:28:21 PM, Randy Dunlap wrote: On 04/09/13 07:52, Rob Landley wrote: > On 04/05/2013 02:53:12 PM, Byron Stanoszek wrote: >> Rob, >> >> FWIW I have a patch to do something like this. It even gives you a rdsize=xxx >> tunable kernel parameter that lets you specify the size of the

Re: [RFC] rootmpfs

2013-04-10 Thread Robin Holt
On Wed, Apr 03, 2013 at 07:30:08AM -0500, Rob Landley wrote: > 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 I don't see anything attached, but... I have been running using tmpfs as my root

Re: [RFC] rootmpfs

2013-04-09 Thread Randy Dunlap
On 04/09/13 07:52, Rob Landley wrote: > On 04/05/2013 02:53:12 PM, Byron Stanoszek wrote: >> Rob, >> >> FWIW I have a patch to do something like this. It even gives you a rdsize=xxx >> tunable kernel parameter that lets you specify the size of the tmpfs, which >> acts like the -osize= mount flag (s

Re: [RFC] rootmpfs

2013-04-09 Thread Rob Landley
On 04/05/2013 02:53:12 PM, Byron Stanoszek wrote: Rob, FWIW I have a patch to do something like this. It even gives you a rdsize=xxx tunable kernel parameter that lets you specify the size of the tmpfs, which acts like the -osize= mount flag (so phrases like 100M or 20% works). So doing th

Re: [RFC] rootmpfs

2013-04-05 Thread Byron Stanoszek
Rob, FWIW I have a patch to do something like this. It even gives you a rdsize=xxx tunable kernel parameter that lets you specify the size of the tmpfs, which acts like the -osize= mount flag (so phrases like 100M or 20% works). So doing things like 'cat /dev/zero > filename' will not run you out

Re: [RFC] rootmpfs

2013-04-03 Thread Rob Landley
On 04/03/2013 07:30:08 AM, Rob Landley wrote: Attached is my quick and dirty hack to make rootfs be tmpfs when CONFIG_TMPFS is enabled. For a somewhat quantum definition of "attached". Robdiff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index c24f1e1..f875bf2 100644 --- a/fs/ramfs/inode.c ++