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

Daniel Ehrenberg dehrenberg at google.com
Mon Mar 16 16:56:20 PDT 2015


I'd be happy to go that way. Given that the major is dynamic, it'd be
a little surprising for someone to depend on a specific minor (yet).

Dan

On Mon, Mar 16, 2015 at 4:12 PM, Ezequiel Garcia
<ezequiel at vanguardiasur.com.ar> wrote:
> (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