ANDROID: dm: verity-fec: add sysfs attribute fec/corrected
authorSami Tolvanen <samitolvanen@google.com>
Wed, 30 Mar 2016 21:10:13 +0000 (14:10 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit68408632cfd94728bd1d8ef97aada9b60346dfcf
treed4809835da040a222efbe5c21ee671cc0ae9de21
parentdf9d8c41ac73d51e7a3be1aacd4283467388701e
ANDROID: dm: verity-fec: add sysfs attribute fec/corrected

Add a sysfs entry that allows user space to determine whether dm-verity
has come across correctable errors on the underlying block device.

Bug: 22655252
Bug: 27928374
Change-Id: I80547a2aa944af2fb9ffde002650482877ade31b
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
(cherry picked from commit 7911fad5f0a2cf5afc2215657219a21e6630e001)

[AmitP: Folded following android-4.9 commit changes into this patch
        3278f53e4658 ("ANDROID: dm verity fec: add missing release from fec_ktype")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/md/dm-verity-fec.c
drivers/md/dm-verity-fec.h