Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751932AbYJSSNB (ORCPT ); Sun, 19 Oct 2008 14:13:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751590AbYJSSMw (ORCPT ); Sun, 19 Oct 2008 14:12:52 -0400 Received: from rv-out-0506.google.com ([209.85.198.227]:38005 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556AbYJSSMw (ORCPT ); Sun, 19 Oct 2008 14:12:52 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=c1l+T5Oq2d6tQXMjMQobcrf9qKW86+95UZRlQtWu1rsvvsDrg/salOWA/vKUBLYSLg p/q4l6A2V4BlwZqr9goPzZ4UcKPMbVX1b4lHBteLph3CXnjWyFccxAhyW32ONyldIo/f yo++B4Z7vjiFzZozBVIzjf1Geb+GOcDH27364= Message-ID: <8bd0f97a0810191112v29ca6be9kf4b0b8ecca718ef8@mail.gmail.com> Date: Sun, 19 Oct 2008 14:12:51 -0400 From: "Mike Frysinger" To: "Bodo Eggert" <7eggert@gmx.de> Subject: Re: [PATCH] use tmpfs for rootfs v3 Cc: jeffschroeder@computer.org, "Geert Uytterhoeven" , linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 40 On Fri, Oct 17, 2008 at 07:16, Bodo Eggert wrote: > This patch allows chosing tmpfs instead of ramfs for the root filesystem. > Having tmpfs is usefull for running systems from RAM, because it does not > risk deadlocking the system and possibly allows swapping. Using tmpfs > increases the kernel by 10 bytes on x86_64. great option, thanks > --- linux-2.6.27.2-numlock/fs/Kconfig 2008-10-10 13:18:34.000000000 +0200 > +++ linux-2.6.27.3-tmpfs/fs/Kconfig 2008-10-11 15:42:21.000000000 +0200 > @@ -953,6 +953,27 @@ config TMPFS_POSIX_ACL > > If you don't know what Access Control Lists are, say N. > > +config TMPFS_ROOT > + bool "Use tmpfs instrad of ramfs for initramfs" > + depends on TMPFS && SHMEM > + default n > + help > + This replaces the ramfs used for unpacking the cpio images > + with tmpfs. > + > + If unsure, say N this should be init/Kconfig and depend on BLK_DEV_INITRD i think. and then update the comment to talk about the initial filesystem rather than cpio images. > +config RAMFS > + bool "Ramfs file system support" if TMPFS_ROOT if you have initramfs support disabled, then you should be able to disable RAMFS as well. so perhaps the depend should read like: if BLK_DEV_INITRD && TMPFS_ROOT || !BLK_DEV_INITRD -mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/