[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210614174454.903555-1-vgoyal@redhat.com>
Date: Mon, 14 Jun 2021 13:44:52 -0400
From: Vivek Goyal <vgoyal@...hat.com>
To: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
virtio-fs@...hat.com
Cc: vgoyal@...hat.com, miklos@...redi.hu, stefanha@...hat.com,
dgilbert@...hat.com, viro@...iv.linux.org.uk, dhowells@...hat.com,
richard.weinberger@...il.com, hch@...radead.org,
asmadeus@...ewreck.org, v9fs-developer@...ts.sourceforge.net
Subject: [PATCH v2 0/2] Add support to boot virtiofs and 9pfs as rootfs
Hi,
We want to be able to compile in virtiofs/9pfs in kernel and then
boot kernel and mount virtiofs/9pfs as root filesystem.
Currently there does not seem to be any good way to be able to do
that. There seem to be some hacky ways like prefixing filesystem
tag with "mtd" or naming the filesystem tag as "/dev/root" to
mount viritofs.
Both viritofs and 9pfs have the notion of a "tag" to mount a filesystem
and they take this "tag" as a source argument of the mount. Filesystem
understands how to handle the tag.
Current code already has hooks to mount mtd/ubi/cifs/nfs root
filesystems (apart of regular block based filesystems). So intead
of creating two separate hooks for two filesystems, I have tried
creating a hook for tag based filesystems. And now both the filesystems
benefit from it.
This is generic enough that I think many more use cases might be
able to take advantage of it down the line.
Vivek Goyal (2):
init/do_mounts.c: Add a path to boot from tag based filesystems
init/do_mounts.c: Add 9pfs to the list of tag based filesystems
init/do_mounts.c | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
--
2.25.4
Powered by blists - more mailing lists