]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit990f1e173a116a40b4b9d84cc0301e1a15cd5549
tree0bce3115039445f6f49f39a02edd5fbd61b7e3a8
parentb8b2e9582137fdc8839dbc412ad64757b98cf29d
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