LWN.net Logo

A NILFS2 score card

A NILFS2 score card

Posted Nov 7, 2012 16:47 UTC (Wed) by cmorgan (guest, #71980)
In reply to: A NILFS2 score card by mirabilos
Parent article: A NILFS2 score card

I'm not sure it matters what the erased state is as long as the "erased" value is defined and handled correctly.

Also keep in mind that some flash chips may not support flipping single bits inside of bytes or flipping individual bytes etc and warn against it. I've personally done this and it worked (and we had error correction) but for some reason the manufacturer said specifically not to. Maybe this is a serial flash only issue though. Can't say I've had that much experience with a range of flash parts.


(Log in to post comments)

A NILFS2 score card

Posted Nov 8, 2012 16:30 UTC (Thu) by mirabilos (subscriber, #84359) [Link]

I was thinking of hardware engineers putting little NOT transistors on the D-bus of the flash chip, before attaching it to the system bus, so that a 0x00 on the system bus would be reas as 0xFF by the chip viceque versa. That would’ve been useful in this case.

But alas, if it isn’t… someone has to deal with it. (And the other comments suggest that the state may not be the same everywhere, so blindly XORing with FFh in the kernel will also not be a solution.)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds