UBIFS recovery truncates file to zero size

Adrian Hunter adrian.hunter at nokia.com
Thu Mar 12 04:26:42 EDT 2009

Iram Shahzad wrote:
> Thanks Brijesh, Adrian, Reuben for your replies.
> I understood, but please let me confirm further.
> For the write back enabled case, I was expecting the
> following behaviour:
>     power went down before the file is sync-ed, so
>     on the next booting the file will be in its old state,
>     that is it will contain the contents which it had before
>     this write.
> But instead of being in the old state, it becomes empty file.
> Is this really expected(correct) behaviour?

No.  How were you updating the file?

More information about the linux-mtd mailing list