UBIFS: file data corruption during the power cut-off test

Sergei Poselenov sposelenov at emcraft.com
Sat Jun 15 00:26:42 PDT 2019

Hello Richard, (Steve),

On Sun, 2019-06-09 at 12:00 +0200, Richard Weinberger wrote:
> ----- Ursprüngliche Mail -----
> > > Well, zero bytes are not garbage. ;)
> > 
> > I've seen some data in the last 512 bytes as well.
> That would be a bug, unless you are overwriting an existing
> file.
I did more tests and was unable to see a non-zero data at the end of
the last file after recovery. Apparently, I was mistaken.

The UBI recovery worked fine every time after the power cut-off.

Thank you and Steve for your comments.

> Thanks,
> //richard
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

More information about the linux-mtd mailing list