UBIFS recovery truncates file to zero size

Adrian Hunter adrian.hunter at nokia.com
Wed Mar 11 06:31:20 EDT 2009

Brijesh Singh wrote:
> On Wed, Mar 11, 2009 at 2:46 PM, Iram Shahzad
> <iram.shahzad at jp.fujitsu.com> wrote:
>> I am having the following problem with UBIFS (Linux 2.6.25 + ubifs-v2.6.25).
>> Please could you tell me if this is a known issue.
>> Problem
>>   If the power is switched off abruptly while a file is being written,
>>   in the next boot the contents of the file is lost. That is, the file
>>   becomes zero sized. The problem is reproducable.
> May be because of write-back support.  Try disabling it.mount with sync option.

There was also a problem with busybox implementation of vi which truncated
the file to zero length.  See revision 21928 here:


More information about the linux-mtd mailing list