public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: Iram Shahzad <iram.shahzad@jp.fujitsu.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Brijesh Singh <brij.singh@samsung.com>
Subject: Re: UBIFS recovery truncates file to zero size
Date: Wed, 11 Mar 2009 12:31:20 +0200	[thread overview]
Message-ID: <49B792F8.7020609@nokia.com> (raw)
In-Reply-To: <6b5362aa0903110251y3b0d23bcy61b20db12ba8c1e1@mail.gmail.com>

Brijesh Singh wrote:
> On Wed, Mar 11, 2009 at 2:46 PM, Iram Shahzad
> <iram.shahzad@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:

	http://sources.busybox.net/index.py/trunk/busybox/editors/vi.c?view=log&pathrev=22471

  reply	other threads:[~2009-03-11 10:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  9:16 UBIFS recovery truncates file to zero size Iram Shahzad
2009-03-11  9:51 ` Brijesh Singh
2009-03-11 10:31   ` Adrian Hunter [this message]
2009-03-11 18:13 ` Reuben Dowle
2009-03-12  2:44   ` Iram Shahzad
2009-03-12  8:26     ` Adrian Hunter
2009-03-12  8:49       ` Iram Shahzad
2009-03-12 10:25         ` Adrian Hunter
2009-03-12 11:08         ` Artem Bityutskiy
2009-03-12 11:11         ` Jamie Lokier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49B792F8.7020609@nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=brij.singh@samsung.com \
    --cc=iram.shahzad@jp.fujitsu.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox