UBIFS volume corruption (bad node at LEB 0:0)

Artem Bityutskiy dedekind at infradead.org
Mon Jan 26 04:18:23 EST 2009


On Wed, 2009-01-07 at 23:13 -0500, David Bergeron wrote:
> Hello all,
> 
> I'm getting some sort of volume corruption problem with UBIFS after  
> doing
> rootfs updates using rsync.
> 
> I've cooked up a minimalist test trying to eliminate possible  
> interference.
> The following steps will trigger the corruption almost every time.
> No  
> errors
> or warnings are produced during this procedure, every step behaves
> as  
> expected:

David,

we think we've fixed this bug. The reason was that when mounting RO,
then re-mounting read-write, the orphan sub-system was not properly
initialized. The fix is available at the ubifs-v2.6.28.git tree. I've
back-ported all stable changes and fixes to the tree. You need this fix:

commit b3718eedf4ab91307f64a79ad8eb911ca401bd22
Author: Adrian Hunter <ext-adrian.hunter at nokia.com>
Date:   Mon Jan 26 10:55:40 2009 +0200

    UBIFS: ensure orphan area head is initialized

    When mounting read-only the orphan area head is
    not initialized.  It must be initialized when
    remounting read/write, but it was not.  This patch
    fixes that.

    [Artem: sorry, added comment tweaking noise]
    Signed-off-by: Adrian Hunter <ext-adrian.hunter at nokia.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>

However, I recommend you to incorporate all UBI/UBIFS changes since
2.6.28, because there were other bug-fixes.

You may find information about back-port trees here:
http://www.linux-mtd.infradead.org/doc/ubifs.html#L_source

Please, send us some feed-back about whether your problem has been
solved.

-- 
> 
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list