[PATCH] mkfs.ubifs: Add option to minimize the amount of LEBs

Richard Weinberger richard at nod.at
Sat Jan 6 02:16:01 PST 2024


----- Ursprüngliche Mail -----
> Von: "Mauri Sandberg" <maukka at ext.kapsi.fi>
>> Use case for the new option would be when you want to have a
>> non-mutable filesystem in a static ubifs volume and another
>> volume for writable data.
>> 
>> Currently you can find the minimal LEB count by running the
>> mkfs.ubifs once with too small max_leb_cnt. This patch uses
>> the already calculated minimal amount of LEBs as the max_leb_cnt
>> and then proceeds to create the image as usual.

[...]

> Friendly ping. Also bringing in Richard and David as I thought at least
> they could be relevant maintainers. Thanks.

Seems like a legit feature. But what will happen if somebody tries to
use a minimized UBIFS in rw-mode?
I fear then UBIFS will fail because it has not enough log LEBs or such?

Thanks,
//richard



More information about the linux-mtd mailing list