Help needed with corruption detection/ubifs_wbuf_sync_nolock

Artem Bityutskiy dedekind1 at gmail.com
Wed Jun 27 10:23:14 EDT 2012


On Mon, 2012-06-25 at 07:48 -0700, Reginald Perrin wrote:
> Update:  
> 
> I'm now doing this, and it seems to work.  Is this correct?
> 
> if ( wbuf->dtype != UBI_UNKNOWN && ((struct ubifs_ch *)wbuf->buf)->node_type > UBIFS_ORPH_NODE ) 

I do not think so, wbuf->buf points to a random byte, not to the
beginning of a node.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120627/783662bd/attachment.sig>


More information about the linux-mtd mailing list