[PATCH 1/1] ubi: Introduce block devices for UBI volumes

Ezequiel Garcia ezequiel.garcia at free-electrons.com
Mon Feb 10 13:48:59 EST 2014


On Mon, Feb 10, 2014 at 04:50:14PM +0200, Artem Bityutskiy wrote:
[..]
> 
> I am concerned of a kernel option. All these little tiny compile-time
> options are so annoying. We have so many of them.
> 
> I'd say, either support write or not.
> 
> If you support it, document its limitations in mtd-www. Print a run-time
> warning that it is not power-cut-safe on module initialization, after
> all. Let others improve it later if needed.
> 
> Or mark R/W as experimental and make your module to be R/O by default.
> Force people to use 'blockdev --setro' if they want R/W. Run-time.
> 
> But do not add anther tiny little Kconfig option.
> 

Hm... well, this brings another question. The 1-LEB cache was made
optional after a suggestion from Piergiorgio; the reason for not
enabling the cache is to make the block interface even less memory
hungry.

Filesystems can have smarter caches, so it's not clear the cache is
needed.

Maybe we can keep a parameter for it? However, notice that the block
interface is no longer a separate module, but part of the UBI core.
-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com



More information about the linux-mtd mailing list