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

Artem Bityutskiy dedekind1 at gmail.com
Mon Feb 10 09:50:14 EST 2014


On Mon, 2014-02-10 at 11:20 -0300, Ezequiel Garcia wrote:
> On Mon, Feb 10, 2014 at 09:46:16AM +0100, Willy Tarreau wrote:
> > > > 
> > > > If write support has 0 or 1.5 customers and it was not tested
> > > > extensively, and never used in any kind of production, I am not sure it
> > > > is needed to be there. But let's first hear your answers.
> > > > 
> > > 
> > > No, this hasn't been tested intensively and I'm pretty sure nobody would
> > > ever put it in production before conducting such tests himself.
> > 
> > For sure, but conversely, disabling it in the code would result in
> > nobody ever testing it !
> > 
> 
> I agree completely and it's why I wanted to have it available.
> 
> > > 
> > > If you really think distros will enable it and users will "just it", without
> > > thinking about the consequences, then I'd say let's just remove it.
> > 
> > In my opinion, this would result in users falling back to mtdblock as
> > they currently to when they want a block device. This is even worse.
> > 
> > I'd really like to have this feature as a standard one, it shortens
> > the gap which exists between MTD and eMMC which is becoming more and
> > more common these days, precisely because of the difficulty to deal
> > with NAND directly while eMMC provides the abstraction which offers
> > more flexibility.
> > 
> 
> Artem, I'd say it's your call. Want me to drop write support or not?

I guess what I am concerned of more now is not the feature, since at
least Willy used is.

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.

Just like the option for the cache that you added - please, try to make
it go away. Have only one single option - enable or disable the entire
driver.

How does this sound?

And I understand your concerns about stalling. I do not have time to
carefully review your patch. It looks good in general. And I do not know
if I will have time for review or not. I hope I will soon. But even if I
won't, I am thinking to just merge it to my tree for 3.14 anyway, unless
someone rises a blocking concern.

How does this sound?

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list