Why is PEB not erased before writing???

Brijesh Singh
2007-02-20T06:37:38Z

I tried to overwrite same block.
Ubi should call erase before overwriting the data block.But it didn't.
UBI simply wrote the block again.That will write garbage for a flash.
So who will call erase??Is it the application's responsibility to call
erase before writing at same location???

I am stuck here because my concept was,
ubi will check if we are re-writing the same PEB.
If yes,UBI will erase the block and then write the same block.

Regards,
BRIJESH