linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: "dedekind1@gmail.com" <dedekind1@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: UBI/UBIFS interrupted write page handling
Date: Thu, 23 Sep 2010 18:14:16 +0200	[thread overview]
Message-ID: <4C9B7CD8.4070806@parrot.com> (raw)
In-Reply-To: <1285006478.1762.1.camel@brekeke>

Hi Artem,

Artem Bityutskiy a écrit :
> On Thu, 2010-09-09 at 20:51 +0300, Artem Bityutskiy wrote:
>>> On one of our test, we are in case 3. Ubifs find a valid interrupt page 
>>> on mount and trust it. Latter the page become corrupted [1] because it 
>>> is unstable.
>> OK, I see.
>>
>>> To identify a interrupted write page we :
>>> - could use interrupted flags for static volume
>>> - handle with care data move (copy flags) : if sqnum of the copy is the 
>>> biggest, we should ignore it/copy it.
>>> - use upper layer for dynamic volume. For ubifs this could be a journal.
>> Actually, for UBIFS things are rather simple. In UBIFS every writes go
>> to the journal. Even GC writes to the journal. So when we are mounting
>> after an unclean reboot, we can simply refresh the last LEBs of all
>> journal heads using the 'ubi_leb_change()' call. This should handle all
>> the three cases you describe.
>>
>> I do not think it is very difficult to do.
> 
> Matthieu, I can try to do to make some patches for you, but when you
> come back on-line and start actively testing :-) I do want to help you
> and improve UBIFS, but I'm not very motivated to do this unless this is
> really needed. I think we have few other pending issues, and the ball is
> on your side. :-)
> 
Ok.

I will run some tests this weekend.

What I have to test ?

- 
http://git.infradead.org/users/dedekind/ubifs-v2.6.28.git/commit/7240a7396fa4b1998d0463123c6d1d192935f969
- UBI reliability improvements patch
- c->gc_lnum is -1 patch

thanks,

Matthieu

  reply	other threads:[~2010-09-23 16:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 13:15 UBI/UBIFS interrupted write page handling Matthieu CASTET
2010-09-09 17:51 ` Artem Bityutskiy
2010-09-20 18:14   ` Artem Bityutskiy
2010-09-23 16:14     ` Matthieu CASTET [this message]
2010-09-23 18:35       ` Artem Bityutskiy
     [not found]         ` <F5C24FC168F95048BB6B9E0B13EB33152BA6F5304E@DIAMANT.xi-lite.lan>
2010-09-26 17:58           ` RE : " Artem Bityutskiy
2010-09-28  6:58             ` Artem Bityutskiy
2010-09-28  7:47               ` Matthieu CASTET
2010-09-28  8:02                 ` Matthieu CASTET
2010-09-28  8:02                 ` Artem Bityutskiy
2010-09-28 16:06                   ` Matthieu CASTET
2010-09-28 18:34                     ` Artem Bityutskiy
2010-10-04 13:12                   ` Matthieu CASTET
2010-10-18 10:21                     ` Artem Bityutskiy

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=4C9B7CD8.4070806@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=dedekind1@gmail.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;
as well as URLs for NNTP newsgroup(s).