Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2951188pxj; Mon, 14 Jun 2021 10:49:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhgGuhpvUW4MS3tfISrh26pXN5cEOWHHSEHA1m8sDwQzwt8raVHJcLJg3k0BB9nuqLwGtS X-Received: by 2002:a05:6402:3554:: with SMTP id f20mr333521edd.204.1623692981455; Mon, 14 Jun 2021 10:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623692981; cv=none; d=google.com; s=arc-20160816; b=vAJMT2pglJm/6WYc7LBdRSQWNSGsMde9WHvNTlkGPUIqHGLJdGHUZ8iSDHmSSG07ZX BSTvDYDKoZErL2Xn9hIT0qrjRsMR37nuetaAtSVPvMNuixuDk4QaeGuPiUoDlORn4Q2p hZIU5QLvDbjEsWRWh1hIy1miXjyYq4iKxHjOVL0Udb0saMLHMf0ugKOhD+nEGnGs/Uuy P7UCq1EevsYmAghgvPRJD1LoTXjWpscI00XcLoUVJGQ7LhcJT2GbHsnZlc7HzyMwMLE6 dpGiAXOhDd/J1NoRJXUsQGwSe42V7IMhCh7rKSNFRb6B/Ta5LvLsv1M2q5am2p//thU6 VLGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6H4VN0TQLGM3nnVWpoc1Pex4P44R3EjC+GamNulSNTA=; b=GTyh9A7L+Tvmen1Ss6dzNeyY/0m8Iw5RiF/3BwdEIF6uM4SMbVA09BrGF5XPvPkCo6 XKtuTb1dmPPzMkWcLH0aqKkbjdGVVgNbXu5LTnPPMBPWAaF28PeN5MlM50MWEHZVasPZ gGluYMGbdHBYpuV6OVXlgBr1sUAp4eyOPTDaTncSscBcRNwnvBd2kQGxCfRtcDEhxOXa P2yvymNU9wyeC3BV+typxsHr+YeOik9xkj0Xe0wi/hIKbSveVR41daBt4f28dH0cpESk xThmSXQP3fDfh9N/bR7INkiphSOBrEyfs0N0pCgGie+2T6Dvq7SSz0ujfJM+P/vvWT9q +nFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dhgzdDGF; 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 j10si11994361ejd.87.2021.06.14.10.49.18; Mon, 14 Jun 2021 10:49:41 -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=dhgzdDGF; 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 S233793AbhFNRr1 (ORCPT + 99 others); Mon, 14 Jun 2021 13:47:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41083 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233782AbhFNRrX (ORCPT ); Mon, 14 Jun 2021 13:47:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623692720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6H4VN0TQLGM3nnVWpoc1Pex4P44R3EjC+GamNulSNTA=; b=dhgzdDGFhKzGwSPw7E9P/RcyqidCdzsm398ZkF8wvel3vFwGd4CWYj+u7L6rQYeIe+qOQL HHOWBGORxGdId8DEPHU2/h5SVs4ecqu1tLB1ztqxt2r7jVQor0oD6wYD6KbpqdVe5SgXHI RLP7wsCVoRJ0ovEsUrl4P0WPKKU3Kvc= 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-99-fPxLTNScPqebiCAFCZVQ7g-1; Mon, 14 Jun 2021 13:45:19 -0400 X-MC-Unique: fPxLTNScPqebiCAFCZVQ7g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 69D119F936; Mon, 14 Jun 2021 17:45:17 +0000 (UTC) Received: from horse.redhat.com (ovpn-114-174.rdu2.redhat.com [10.10.114.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id D482160657; Mon, 14 Jun 2021 17:45:06 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 62478225FCE; Mon, 14 Jun 2021 13:45:06 -0400 (EDT) From: Vivek Goyal To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com Cc: vgoyal@redhat.com, miklos@szeredi.hu, stefanha@redhat.com, dgilbert@redhat.com, viro@zeniv.linux.org.uk, dhowells@redhat.com, richard.weinberger@gmail.com, hch@infradead.org, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net Subject: [PATCH v2 2/2] init/do_mounts.c: Add 9pfs to the list of tag based filesystems Date: Mon, 14 Jun 2021 13:44:54 -0400 Message-Id: <20210614174454.903555-3-vgoyal@redhat.com> In-Reply-To: <20210614174454.903555-1-vgoyal@redhat.com> References: <20210614174454.903555-1-vgoyal@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add 9p to the list of tag based filesystems. I tested basic testing with kernel command line "root=hostShared rootfstype=9p rw" and it works for me. Signed-off-by: Vivek Goyal --- init/do_mounts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/do_mounts.c b/init/do_mounts.c index 2a18238f4962..7c86bfdab15b 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -35,6 +35,9 @@ static char *__initdata tag_based_rootfs[] = { #if IS_BUILTIN(CONFIG_VIRTIO_FS) "virtiofs", #endif +#if IS_BUILTIN(CONFIG_9P_FS) + "9p", +#endif }; static bool __initdata tag_based_root; static int root_wait; -- 2.25.4