Skip to content
Commit 2e3cbf42 authored by Stefan Schaeckeler's avatar Stefan Schaeckeler Committed by Richard Weinberger
Browse files

ubifs: Export filesystem error counters



Not all ubifs filesystem errors are propagated to userspace.

Export bad magic, bad node and crc errors via sysfs. This allows userspace
to notice filesystem errors:

 /sys/fs/ubifs/ubiX_Y/errors_magic
 /sys/fs/ubifs/ubiX_Y/errors_node
 /sys/fs/ubifs/ubiX_Y/errors_crc

The counters are reset to 0 with a remount.

Signed-off-by: default avatarStefan Schaeckeler <sschaeck@cisco.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 3fea4d9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment