[PATCH] UBI: block: Add option for dynamic minor number

Ezequiel Garcia ezequiel at vanguardiasur.com.ar
Mon Mar 16 16:12:34 PDT 2015


(Adding UBI maintainers)

On 03/16/2015 05:55 PM, Dan Ehrenberg wrote:
> This patch adds a new config option, MTD_UBI_BLOCK_DYNAMIC_MINOR, which
> makes minor numbers dynamically allocated for ubiblock devices, starting
> at 0.
> 
> From the new Kconfig:
>     This option makes ubiblock devices have minor numbers beginning from
>     0, allocated dynamically independently of the ubi device/volume
>     number. For users who don't refer to an ubiblock device directly by
>     the major:minor number (e.g., with udev and/or devtmpfs), this option
>     is useful if the device number is rather high (>1) and when executing
>     on a 32-bit platform without LFS enabled in all userspace binaries.
> 

Hm, I'm wondering if there are any users relying on a specific minor.

I'm not fond of the new option, and I'm not fond of the ifdefs you bring
in. Can't we just change minors to be dynamic?
-- 
Ezequiel Garcia, VanguardiaSur
www.vanguardiasur.com.ar



More information about the linux-mtd mailing list