flash_eraseall reports incorrect percentage

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri Nov 21 06:22:05 EST 2008


On Fri, 21 Nov 2008 11:51:38 +0200
Artem Bityutskiy <dedekind at infradead.org> wrote:

> 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.  I was planning to do that this afternoon, but now I can stare
at some other patch instead :).

josh



More information about the linux-mtd mailing list