From patchwork Fri Aug 11 19:22:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 109922 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1340128qge; Fri, 11 Aug 2017 12:31:19 -0700 (PDT) X-Received: by 10.84.229.6 with SMTP id b6mr19095415plk.274.1502479879720; Fri, 11 Aug 2017 12:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502479879; cv=none; d=google.com; s=arc-20160816; b=bsyrsNcfEcYP5JwYM4fU0LzavWA25HLmqXlfirAZ6Dg5r6HuuhzF3gv/DGpxVgcmj6 7yEYfGBdXVYwTwRQEEhm2BPZiuD045WypRm+czn0ay+3w3B8hJufBAhsmP8+AzKk1eAh czisIZqOdtLyIW8dI9r16CjDMKHSn+t4FnTtpr2IAGm1+Mgv62kXbPeWBtuB7XrHquKG CIhLTKVVN9rmXqGNNxbhjCSnAtErDj01fyrzzgWIKDCEwwinebgX1VdoSchNz3SIRvUx 1hYMjR0MwdGEs0lmz48MPWkLbKcirWT9joJ6dhhrufwoo8x3Sn47AxFVl0s+3zVChrPV wqTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ca+QiXC0vF9FkCx9VLYqGM6WdqUbVTv57rFd2zh45MM=; b=P4Fv/TQxQRL8G5aDTwtLgzrC6GXQH0vZf5eJEbR8RLsP3bh9Ur1Y5KUripUganfSxP ytiarzFjXsBycmPcqGs9JPSvjNhQ3sEeY/yGu0hvaV6WpoDoG/AxGQ1I930nicd8nKG7 WVT/uPpUDvXpXnQF2A6FeTeglHaIaPK2erIHLe0lAEbjEgr8kSgsF5CtW0rdmvDH4vEF T1rFtk2cIWWrkHnNgswNTUG8d1uvs2LCIRGkc4qkJDFJzKG5aIR7SvqOBnbfvraf2ZX9 LfhOXgqaFXjt5V32/Ti3C8xU+GJI1GHbS3gGqjeJ7dK7GPYgDQE7VOWZr9tsV+tbYnOL NgkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=Y1ii0t1G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si879293pfd.505.2017.08.11.12.31.19; Fri, 11 Aug 2017 12:31:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=Y1ii0t1G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbdHKTbB (ORCPT + 25 others); Fri, 11 Aug 2017 15:31:01 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:58929 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753401AbdHKTa5 (ORCPT ); Fri, 11 Aug 2017 15:30:57 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id CD4E2A4267; Fri, 11 Aug 2017 15:23:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; s=sasl; bh=Kzk1 NoZ34grNpdHOoyv80jv8ttk=; b=Y1ii0t1GS1rEDUp+4tBwBzWdT4CMTJ1WgyWC JMZHMXAiFIeWtggheoWmmYefeJtIYKYFJbP0MctlTrawxZMt2snZzqmkbFb+6A4o FEXGtBVYL3oy7Pu8KDM48Qaxwpu2ItmmtfEQ9SN/BwZ2Kw68ekTHfXXVfaeEZDcw 9GB4VH8= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 5EBC5A4261; Fri, 11 Aug 2017 15:23:01 -0400 (EDT) Received: from yoda.home (unknown [96.23.157.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 203A4A4258; Fri, 11 Aug 2017 15:23:00 -0400 (EDT) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 7A6082DA0679; Fri, 11 Aug 2017 15:22:59 -0400 (EDT) From: Nicolas Pitre To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Brandt Subject: [PATCH 2/5] cramfs: make cramfs_physmem usable as root fs Date: Fri, 11 Aug 2017 15:22:49 -0400 Message-Id: <20170811192252.19062-3-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170811192252.19062-1-nicolas.pitre@linaro.org> References: <20170811192252.19062-1-nicolas.pitre@linaro.org> X-Pobox-Relay-ID: 7CDD8764-7ECA-11E7-BCC6-9D2B0D78B957-78420484!pb-smtp2.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Nicolas Pitre --- init/do_mounts.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.4 diff --git a/init/do_mounts.c b/init/do_mounts.c index c2de5104aa..43b5817f60 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -556,6 +556,14 @@ void __init prepare_namespace(void) ssleep(root_delay); } + if (IS_ENABLED(CONFIG_CRAMFS_PHYSMEM) && root_fs_names && + !strcmp(root_fs_names, "cramfs_physmem")) { + int err = do_mount_root("cramfs", "cramfs_physmem", + root_mountflags, root_mount_data); + if (!err) + goto out; + } + /* * wait for the known devices to complete their probing *