I have an SSD that I suspect failing silently now and then. I have run
badblocks on it and it is clear that it is not bad sectors but might instead be some race condition in the electronics, in which case a retry would probably read the data correctly.
Normal magnetic disks have some ECC to correct errors by taking up more space. Can Linux add an ECC layer on top of my block device?
I am thinking of something similar to device mapper, so maybe:
dmsetup create-ecc /dev/orig /dev/mapper/with_ecc
so any read and write to /dev/mapper/with_ecc will be converted to an ecc-read/write on /dev/orig.
It seems others have been looking for it, too: http://permalink.gmane.org/gmane.linux.kernel.device-mapper.devel/8756