]> git.karo-electronics.de Git - linux-beck.git/commit
UBI: Add ro-mode sysfs attribute
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Thu, 28 Apr 2016 21:13:58 +0000 (18:13 -0300)
committerRichard Weinberger <richard@nod.at>
Tue, 24 May 2016 13:15:26 +0000 (15:15 +0200)
commit525bab71feb152bccb65054cc2bca1537e3bd2b5
tree877c83716fd81179bac97376dbede1a368cb51d8
parent04974df8049fc4240d22759a91e035082ccd18b4
UBI: Add ro-mode sysfs attribute

On serious situations, UBI may detect serious device corruption,
and switch to read-only mode to protect the data and allow debugging.
This commit exposes this ro-mode on sysfs, so it can be obtained
by userspace tools.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Richard Weinberger <richard@nod.at>
Documentation/ABI/stable/sysfs-class-ubi
drivers/mtd/ubi/build.c