linux-erofs.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Merging multiple erofs file systems on the same block device
@ 2023-05-01 14:09 Daan De Meyer
  2023-05-02  3:17 ` Gao Xiang
  0 siblings, 1 reply; 6+ messages in thread
From: Daan De Meyer @ 2023-05-01 14:09 UTC (permalink / raw)
  To: linux-erofs

Hi,

I've been looking into erofs as an initramfs replacement by using
root=/dev/ram0 to tell the kernel to load the initramfs as a ramdisk.
However, by using a ramdisk instead of the usual compressed cpio, I
would lose the feature where the kernel merges multiple individual
cpios together into a single tmpfs filesystem. Looking at the
documentation for erofs, I noticed that erofs already seems to support
merging multiple erofs filesystems on separate block devices using the
device= cmdline option. Would it be possible to extend this so that
multiple erofs filesystems that follow each other on the same block
device can also be merged? This would allow me to pass multiple erofs
filesystems to the kernel via initrd=, which would get concatenated
together into a single buffer, which the kernel would write to a
ramdisk (using root=/dev/ram0) which the kernel would then have erofs
mount to /dev/root. erofs would notice that there's multiple erofs
filesystems on the ramdisk and overlay them together (perhaps only if
a cmdline option is enabled).

Does this make sense at all?

Cheers,

Daan De Meyer

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

end of thread, other threads:[~2023-05-08 11:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-01 14:09 Merging multiple erofs file systems on the same block device Daan De Meyer
2023-05-02  3:17 ` Gao Xiang
2023-05-02 10:03   ` Daan De Meyer
2023-05-05  5:05     ` Gao Xiang
2023-05-05  8:19       ` Daan De Meyer
2023-05-08 11:04         ` Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).