This is a very initial draft for one possibility of bitrot checking in UBI. The basic idea is to have a worker function which reads a complete PEB and schedules scrubbing if bit flips are detected. Currently this check is triggered by accessing any UBI debugfs file (yes, I'm lazy!). We have to agree on an interface first. Do we want a debugfs file? Another ioctl()? Automatic in-kernel schedules? Of course this interface has to return EBUSY if currently a check is running...
The current implementation has one limitation, it can only check PEBs which are used. As of now ubi_wl_scrub_peb() works only for used PEBs but I think we could change that. Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/