ubi: Expose the bitrot interface
authorRichard Weinberger <richard@nod.at>
Wed, 7 Nov 2018 22:16:19 +0000 (23:16 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 24 Feb 2019 10:40:45 +0000 (11:40 +0100)
commit663586c0a8929db81e617c775823efb9d65f2bc2
tree0bce3115039445f6f49f39a02edd5fbd61b7e3a8
parentb32b78f89221ee26ae60f9a59e71b5ec28ba5fe2
ubi: Expose the bitrot interface

Using UBI_IOCRPEB and UBI_IOCSPEB userspace can force
reading and scrubbing of PEBs.

In case of bitflips UBI will automatically take action
and move data to a different PEB.
This interface allows a daemon to foster your NAND.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c
include/uapi/mtd/ubi-user.h