[U-Boot] [PATCH] ubifs: Allow ubifsmount volume reference by number

Joe Hershberger joe.hershberger at gmail.com
Mon Nov 5 17:49:58 CET 2012


Hi Vikram,

On Mon, Nov 5, 2012 at 10:43 AM, Vikram Narayanan <vikram186 at gmail.com> wrote:
>
> On 11/2/2012 8:24 AM, Joe Hershberger wrote:
>>
>> UBI can mount volumes by name or number  The current code forces you
>> to name the volume by prepending every name with "ubi:".
>>
>>  From fs/ubifs/super.c
>>   * There are several ways to specify UBI volumes when mounting UBIFS:
>>   * o ubiX_Y    - UBI device number X, volume Y;
>>   * o ubiY      - UBI device number 0, volume Y;
>>   * o ubiX:NAME - mount UBI device X, volume with name NAME;
>>   * o ubi:NAME  - mount UBI device 0, volume with name NAME.
>>
>> Now any name passed in any of the above forms are allowed.
>
>
> What exactly are we gaining from this naming compared to the default?
> In what way the old naming affects the end user?

The reason I needed this change is so that I could specify the volume
by number in a script instead of being forced to know the name.  In
Linux you can use the volume number using the format above (it's the
same code).

-Joe


More information about the U-Boot mailing list