ubifs : corruption after power cut test

Matthieu CASTET matthieu.castet at parrot.com
Tue Jul 13 05:24:33 EDT 2010


Matthieu CASTET a écrit :
> Matthieu CASTET a écrit :
>> Hi,
>>
>> we found some bug in our driver. Now there no more ubifs error when
>> there is uncorrectable ecc error (they should happen in the last
>> (interrupted) written page).
>>
>> But now we got "validate_master: bad master node at offset 69632 error
>> 7" [1].
> notice that gc_lnum==-1 in this case.
> Also this didn't happen on power cut.
> The senario was :
> - power cut
> - mount fs [1]
> - do some fs operation
> - umount fs quickly (9 second after mount in this case) [2]
> - mount fs [3]
> 
> The the problem seems that gc_lnum==-1 is not handled in mount or
> shouldn't happen in umount.
> 
The attached patch try to support mount with gc_lnum == -1.

Does it look sane ?


Matthieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubifs.diff
Type: text/x-diff
Size: 1369 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20100713/82e2c015/attachment.bin>


More information about the linux-mtd mailing list