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

Nicholas Krause xerofoify at gmail.com
Mon Mar 16 16:21:28 PDT 2015


 dynamic in nature. 
Nick 

On March 16, 2015 7:12:34 PM EDT, 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?
Richard, 
I have to agree and was going to point out the ugliness of adding these macros. Furthermore I second the vote for just making minor device numbers given to 
Uni fs

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the linux-mtd mailing list