Skip to content

initmpfs v2: use tmpfs instead of ramfs for rootfs

Rob Landley linux-fsdevel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5initmpfs v2: replace MS_NOUSER in initramfsfs/ramfs/inode.c+6 -10 replies
2/5initmpfs v2: Move bdi setup from init_rootfs to init_ramfsfs/ramfs/inode.c+18 -50 replies
3/5initmpfs v2: Move rootfs code from fs/ramfs/ to init/fs/namespace.c fs/ramfs/inode.c include/linux/init.h +2 more+36 -330 replies
4/5initmpfs v2: Make rootfs use tmpfs when CONFIG_TMPFS enabled.init/do_mounts.c mm/shmem.c+12 -20 replies
5/5initmpfs v2: Use initramfs if rootfstype= or root= specified.init/do_mounts.c+11 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. Specify rootfstype=ramfs to get the old initramfs behavior.

The previous initramfs code provided a fairly crappy root filesystem:
didn't let you --bind mount directories out of it, reported zero size/usage so it didn't show up in "df" and couldn't run things like rpm that query available space before proceeding, would fill up all available memory and panic the system if you wrote too much to it...

Using tmpfs instead provides a much better root filesystem.

Changes from v1: use test_and_set_bit() for "once" logic.

Changes from this morning's send: none, just hopefully not screwing up the message-id this time trying to make it a reply to another message via cut and paste...

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>