Skip to content

support booting of arbitrary non-blockdevice file systems

Vivek Goyal linux-fsdevel lkml virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 7 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3init: split get_fs_namesinit/do_mounts.c+26 -221 reply
2/3init: allow mounting arbitrary non-blockdevice filesystems as rootinit/do_mounts.c+43 -01 reply
3/3fs: simplify get_filesystem_list / get_all_fs_namesfs/filesystems.c include/linux/fs.h init/do_mounts.c+39 -393 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan HajnocziChristian Brauner
SeriesA-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] support booting of arbitrary non-blockdevice file systems

Hi,

This is V3 of patches. Christoph had posted V2 here.

https://lore.kernel.org/linux-fsdevel/[email protected]/

There was a small issue in last patch series that list_bdev_fs_names() did not put an extra '\0' at the end as current callers were expecting.

To fix this, I have modified list_bdev_fs_names() and split_fs_names() to return number of null terminated strings they have parsed. And modified callers to use that to loop through strings (instead of relying on an extra null at the end).

Christoph was finding it hard to find time so I took his patches, added my changes in patch3 and reposting the patch series.

I have tested it with 9p, virtiofs and ext4 filesystems as rootfs and it works for me.

Thanks
Vivek

Christoph Hellwig (3):
init: split get_fs_names
init: allow mounting arbitrary non-blockdevice filesystems as root
fs: simplify get_filesystem_list / get_all_fs_names

 fs/filesystems.c   | 27 ++++++++------
 include/linux/fs.h |  2 +-
 init/do_mounts.c   | 90 +++++++++++++++++++++++++++++++++-------------
 3 files changed, 83 insertions(+), 36 deletions(-)
Signature · 1 line
2.31.1