A simple device that returns a specific error when you try to read from (EIO). You can use this for testing purposes.
We could turn this into a much more generic device for crafting all kinds of errors, for example returning errors with a certain distribution, or after reading X bytes, all controllable by a textual interface. We could do this, but we do not, this device is dead simple.