Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp392094pxv; Thu, 15 Jul 2021 06:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXRNU2AUUhWkOSRT+3IsiI84zFRPT1+KOu6W0Ttm/qNUO5HKBNDE/L7g75IoGnjScB/z7Z X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr7113190edr.2.1626356670503; Thu, 15 Jul 2021 06:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356670; cv=none; d=google.com; s=arc-20160816; b=G1yUmgISGL6KMvCkM1uCy/4EFyLEoZh4HG0/yROHrxjZuaXxVv8RoWwAWehc962oBk lX+pmUvuLq+COgsnLBAQJ5zAUgMODnUzUDuPkUQEyrLELVuJV7rV9mU1whkF2DqTX+Bd mjpIKIYGvEUTOsczXdFs8meImrpsk8JjbaDnshohlUWAs2nbpUIl6XqxzmlgG5rJ39Tt TNcT76sE4FF7E0B22mTX9sps1OItic+ZwwTZZw98LXoryJxmUVt6S1LLfXQ1BC61vswy noZz/PkZSh9kPNZU8iuS8qRs7fA1jTQ0Bcw6rl1WrwRdD9htfw21UhE11gsMU1bIN32I eDPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jtFaLCASbyDalUPAKMsgKEAlK+8VCaXj/2PuSUEfwWQ=; b=WUB8UoJuyvAgRjjCg6TtcM/zIlzDSK8AflbLWY+rSvrbIOxWdg+/5uvJ8eWsZGkejA rRVPMDP6EVLEEfHjtz7MjK336D3J/qPlIdtFpy5XzkmNVjpwzqyMNKEYfPU1dFQkgtrE RRfwatSu99bhjrRCQfxGuUxR3OwelPAvTx2UccG/Lj6jCFu+U8KXBvBiALt3niuwmmWo HRxlOzglhScbbBeAJlq+ewyfcZHHatDG7cykXtAvKYfer/XesoI1Ad3TT/cBL7H+pane rH62qpQveEeIT4fRX7tT8lwYnEc6ujzmL9mRNBCxqu3MxPNju6gA6f4QSepr5MNwlE8s eTjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cFZco2D3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si852131ejg.276.2021.07.15.06.44.06; Thu, 15 Jul 2021 06:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cFZco2D3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241126AbhGOKHk (ORCPT + 99 others); Thu, 15 Jul 2021 06:07:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45639 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234227AbhGOKHi (ORCPT ); Thu, 15 Jul 2021 06:07:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626343485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jtFaLCASbyDalUPAKMsgKEAlK+8VCaXj/2PuSUEfwWQ=; b=cFZco2D3ycYqBCuc/6Har1lXvB/l5pBx03jwFgVGk3VxkEbsqYNNK8F1lAbWqnMUyQJCfp HCIp8TRFrN1rzRGjvPITZzgso3zSKsTirSyJH7I2UkhcOK4JO/I6ByIpZCclll4xK3lpRL hRjL6UIdc8ev6GzEokZCqrEWnGlyhWo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-453-M4UrhY3kOQScGDb-dHZyJA-1; Thu, 15 Jul 2021 06:04:44 -0400 X-MC-Unique: M4UrhY3kOQScGDb-dHZyJA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2D7A181CD1C; Thu, 15 Jul 2021 10:04:37 +0000 (UTC) Received: from localhost (ovpn-114-184.ams2.redhat.com [10.36.114.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02B2760BF1; Thu, 15 Jul 2021 10:04:32 +0000 (UTC) Date: Thu, 15 Jul 2021 11:04:31 +0100 From: Stefan Hajnoczi To: Vivek Goyal Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de, virtio-fs@redhat.com, v9fs-developer@lists.sourceforge.net, miklos@szeredi.hu Subject: Re: [PATCH v3 2/3] init: allow mounting arbitrary non-blockdevice filesystems as root Message-ID: References: <20210714202321.59729-1-vgoyal@redhat.com> <20210714202321.59729-3-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="13TCeV9ER/8KiSw9" Content-Disposition: inline In-Reply-To: <20210714202321.59729-3-vgoyal@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --13TCeV9ER/8KiSw9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 14, 2021 at 04:23:20PM -0400, Vivek Goyal wrote: > From: Christoph Hellwig >=20 > Currently the only non-blockdevice filesystems that can be used as the > initial root filesystem are NFS and CIFS, which use the magic > "root=3D/dev/nfs" and "root=3D/dev/cifs" syntax that requires the root > device file system details to come from filesystem specific kernel > command line options. >=20 > Add a little bit of new code that allows to just pass arbitrary > string mount options to any non-blockdevice filesystems so that it can > be mounted as the root file system. >=20 > For example a virtiofs root file system can be mounted using the > following syntax: >=20 > "root=3Dmyfs rootfstype=3Dvirtiofs rw" >=20 > Based on an earlier patch from Vivek Goyal . >=20 > Signed-off-by: Christoph Hellwig > --- > init/do_mounts.c | 43 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) Reviewed-by: Stefan Hajnoczi --13TCeV9ER/8KiSw9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmDwCC8ACgkQnKSrs4Gr c8i4zwgAjAKuIsfOkllAfSxyhcwSXl4730G0xBWSUD/0ctkSnsi441CQf5bOsgVP 4bHyY1VbVzAIaVdBswhnn5fCWvJQrO0QR7objrJ5yeHUHb/jseX4/uIf9f5R6jyf QZ8EdCZAqalfe51gdGH5CPckI63SCnXGCfo1LblWJvbyO+FJxO6NuzrRksfxm7MR R3DpOIuSK1utF4FrfWUFor2sld6ivCyKKTTiKSpw6WY4I1NkWLEnMbxrji0aw6sp huB/FMna/momhYzjxxs6HPHUA7iYZ01uw/b56BPohPnHgh1Ae4Oaci+PevzJg3tN 6p2KY9wjmBInwecZDEpeYJnOokMhsw== =OvOE -----END PGP SIGNATURE----- --13TCeV9ER/8KiSw9--