[BUG v1.4.6] `ubinfo -a' confused about non-consecutive UBI device numbers

Brian Norris computersforpeace at gmail.com
Tue Jan 24 15:16:11 EST 2012


On Tue, Jan 24, 2012 at 1:24 AM, Brian Foster <brian.foster at maxim-ic.com> wrote:
>  Using mtd-utils v1.4.6 with a v2.6.36 Linux kernel,
>  if I have non-consecutive UBI device numbers (in the
>  example below, ‘ubi0’ and ‘ubi10’), then ‘ubinfo -a’,
>  after printing the info for ‘ubi0’, errors with:
>
>    ubinfo: error!: cannot get information about UBI device 1
>            error 2 (No such file or directory)
...
>  I have not investigated, nor tried other/recent versions.

Still present on current git. The fix doesn't look too bad. I'll
probably send a fix in the next few days.

Brian



More information about the linux-mtd mailing list