flash_eraseall reports incorrect percentage
Artem Bityutskiy
dedekind at infradead.org
Fri Nov 21 04:51:38 EST 2008
On Tue, 2008-11-18 at 19:56 +0100, Ladislav Michl wrote:
> On Wed, Jan 30, 2008 at 02:03:13PM +0100, Stefan Roese wrote:
> > It seems that the flash_eraseall utility doesn't report the correct percentage
> > upon completion. After erasing the last sector, the output seems not to get
> > updated anymore. This leads to something like this on a partition with only 2
> > sectors:
> >
> > flash_eraseall /dev/mtd6
> > Erasing 256 Kibyte @ 40000 -- 50 % complete.
> >
> > I'm just posting this report as a reference. Perhaps somebody has a little
> > time to fix it.
>
> Well, I sacrificed a little time otherwise used to prepare supper, but
> fridge is emty...
>
> # flash_eraseall /dev/mtd4
> Erasing 128 Kibyte @ 2800000 -- 100 % complete.
>
> flash_eraseall
> * fix percentage reporting
> * exit()ing from main() is overkill, just return
>
> Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
It seems others are busy, so I took a look at this. I think the patch is
OK, pushed to mtd-utils.git.
Thanks.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list