max_ec value is shown as 1

Sandeep Kumar sandeepksinha at gmail.com
Thu Jan 11 06:22:55 EST 2007


On 1/11/07, Artem Bityutskiy <dedekind at infradead.org> wrote:
> Hello Sandeep,
>
> On Thu, 2007-01-11 at 10:44 +0000, Sandeep Kumar wrote:
> > [root at localhost ubi]#cd /sys/class/ubi/ubi0/
> > [root at localhost ubi0]# cat max_ec
> > 1
> >
> > Well, Can anyone help me in determining that why the max_ec is shown as 1.
>
> What did you expect instead?
>
I got it, I think. I mistook this value as the maximum erase count for
a leb on that device. And thats why I was surprised.

I think information is used for wear leveling.

> You fed empty flash to UBI, UBI erased each eraseblock once and put
> erase counter header to each eraseblock, with erase counter = 1, because
> there was one erase.
>



> And max_ec which means maximum erase counter value is 1.
>
> --
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)
>
>


-- 
Regards,
Sandeep





 	
If the facts don't fit the theory, change the facts.


More information about the linux-mtd mailing list