[PATCH] mkfs.ubifs: Add option to minimize the amount of LEBs
Mauri Sandberg
maukka at ext.kapsi.fi
Sat Jan 6 06:46:11 PST 2024
Thanks for your propmpt response, Richard.
On 6.1.2024 12.16, Richard Weinberger wrote:
> 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?
First off I would assume it would mount the filesystem writable with
very little free space available. Here I am assuming the mininum LEB
count mkfs.ubifs calculates is legit and that the same goes for the
journal and log sizes.
Also, my current understanding is that the LEB calculation is based on
uncompressed size. If ubi uses compression runtime then the amount of
LEBs actually used is smaller, no?
I'll have to do some tests on the topic and see how it behaves. I'll get
back to you.
More information about the linux-mtd
mailing list