All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support to boot virtiofs and 9pfs as rootfs
@ 2021-06-14 17:44 ` Vivek Goyal
  0 siblings, 0 replies; 16+ messages in thread
From: Vivek Goyal @ 2021-06-14 17:44 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, virtio-fs
  Cc: vgoyal, miklos, stefanha, dgilbert, viro, dhowells,
	richard.weinberger, hch, asmadeus, v9fs-developer

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-06-18 12:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 17:44 [PATCH v2 0/2] Add support to boot virtiofs and 9pfs as rootfs Vivek Goyal
2021-06-14 17:44 ` [Virtio-fs] " Vivek Goyal
2021-06-14 17:44 ` [PATCH v2 1/2] init/do_mounts.c: Add a path to boot from tag based filesystems Vivek Goyal
2021-06-14 17:44   ` [Virtio-fs] " Vivek Goyal
2021-06-18  7:07   ` Miklos Szeredi
2021-06-18  7:07     ` [Virtio-fs] " Miklos Szeredi
2021-06-18 12:53     ` Vivek Goyal
2021-06-18 12:53       ` [Virtio-fs] " Vivek Goyal
2021-06-14 17:44 ` [PATCH v2 2/2] init/do_mounts.c: Add 9pfs to the list of " Vivek Goyal
2021-06-14 17:44   ` [Virtio-fs] " Vivek Goyal
2021-06-17 10:14 ` [PATCH v2 0/2] Add support to boot virtiofs and 9pfs as rootfs Christoph Hellwig
2021-06-17 10:14   ` [Virtio-fs] " Christoph Hellwig
2021-06-17 13:30   ` Vivek Goyal
2021-06-17 13:30     ` [Virtio-fs] " Vivek Goyal
2021-06-17 14:25     ` Christoph Hellwig
2021-06-17 14:25       ` [Virtio-fs] " Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.