Stefan Schaeckeler 2e3cbf4258 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: Stefan Schaeckeler <sschaeck@cisco.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2021-12-23 20:23:42 +01:00
..
2021-06-18 22:04:47 +02:00
2021-12-23 20:23:40 +01:00
2021-12-23 20:23:42 +01:00
2021-04-12 15:04:30 +02:00
2021-06-22 09:21:39 +02:00
2021-06-22 09:21:39 +02:00
2020-08-02 22:59:03 +02:00
2021-12-23 20:23:40 +01:00
2021-04-15 22:00:26 +02:00
2021-06-22 09:21:39 +02:00