ubifs : corruption after power cut test

Matthieu CASTET matthieu.castet at parrot.com
Mon Aug 2 05:32:33 EDT 2010


Matthieu CASTET a écrit :
> Hi,
> 
> Matthieu CASTET a écrit :
>> Artem Bityutskiy a écrit :
>> Ok thanks, I will run it
>>
>> When checking the code, I saw that switch_gc_head can set c->gc_lnum to -1.
>>
>> In ubifs_put_super, we set c->mst_node->gc_lnum to c->gc_lnum and write 
>> master node.
>> Can't ubifs_put_super run while switch_gc_head set gc_lnum to -1 ?
>>
> I manage to reproduce it with the backtrace [1].
> 
Waiting for a proper fix, I force recovery if gc_lnum to -1.


Matthieu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ubifs
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20100802/69ba8915/attachment.ksh>


More information about the linux-mtd mailing list