[PATCH 2/2] ubinfo: fix `--all' for non-consecutive device numbers
Brian Foster
brian.foster at maxim-ic.com
Mon Jan 30 03:32:13 EST 2012
On Friday 27 January 2012 19:28:59 Brian Norris wrote:
> On Thu, Jan 26, 2012 at 12:53 AM, Brian Foster <brian.foster at maxim-ic.com> wrote:
> > [ ... ] looking at the mtd-utils v1.4.6 ‘mtdinfo.c’,
> > is there a similar issue there? But I have no idea
> > how you could get non-consecutive MTD device numbers?
>
> Yeah, there is a problem there. It's a little more difficult to see,
> but it can happen.
>
> Suppose you have /dev/mtd0 on your system, then you can get an error
> with the following sequence:
>
> # modprobe mtdram
> # modprobe nandsim
> # rmmod mtdram
> # mtdinfo --all
> ...
> mtdinfo: error!: mtd1 does not correspond to any existing MTD device
Ah, Ok! I had a similar thought over the weekend,
and before seeing your e-mail tried to set-up the
situation up on one of our SoC evaluation boards,
using our H/W drivers. But for some reason those
drivers won't unload — I should look into that —
and then saw your e-mails ....
> I'm sending a quick patch set for this.
Yeah, saw it, seemed Ok to me. Thanks.
cheers!
-blf-
--
Brian Foster
Principal MTS, Software | La Ciotat, France
Maxim Integrated Products | Web: http://www.maxim-ic.com/
More information about the linux-mtd
mailing list