Why UBIFS min I/O unit size must be power of 2?
Konstantin Tokarev
annulen at yandex.ru
Tue Jul 14 07:03:18 PDT 2015
14.07.2015, 14:26, "Richard Weinberger" <richard.weinberger at gmail.com>:
> On Tue, Jul 14, 2015 at 11:48 AM, Konstantin Tokarev <annulen at yandex.ru> wrote:
>> Hi all,
>>
>> I'd like to increase compression ratio of UBIFS image (at the cost of possibly
>> slower writes). However, my LEB size is 129024, so the largest block size that
>> I could use is 2048 (otherwise LEB won't be multiple of I/O unit size).
>>
>> So I wonder why UBIFS cannot use 129024 as I/O unit size and requires it to be
>> power of 2? Is it possible to eleminate this limitation?
>
> To my knowledge the property is defined by hardware limitations (i.e.
> flash properties).
>
Ah, this is *hardware* I/O unit size, and I was thinking of it as it was UBIFS
compression block size.
Thank you.
--
Regards,
Konstantin
More information about the linux-mtd
mailing list