Re: [PATCH] fs: Add 'rootfsflags' to set rootfs mount options

From: Rob Landley
Date: Fri Aug 08 2025 - 10:44:31 EST


On 8/7/25 21:30, Dave Young wrote:
I do see there are a few similar usages in init/do_mounts.c, probably
it is old stuff and it just works. But I think making rootfs_flags as
an array and copying str into it is the right way.

The lifespan of the string ends before PID 1 gets launched. The copy would be unnecessary and either perform an allocation or impose a gratuitous length limit.

Rob