Skip to content

Commit

Permalink
ubifs: Document sysfs nodes
Browse files Browse the repository at this point in the history
Add documentation for the new sysfs nodes

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

Signed-off-by: Stefan Schaeckeler <sschaeck@cisco.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Stefan Schaeckeler authored and Richard Weinberger committed Dec 23, 2021
1 parent 2e3cbf4 commit 5822563
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Documentation/ABI/testing/sysfs-fs-ubifs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
What: /sys/fs/ubifsX_Y/error_magic
Date: October 2021
KernelVersion: 5.16
Contact: linux-mtd@lists.infradead.org
Description:
Exposes magic errors: every node starts with a magic number.

This counter keeps track of the number of accesses of nodes
with a corrupted magic number.

The counter is reset to 0 with a remount.

What: /sys/fs/ubifsX_Y/error_node
Date: October 2021
KernelVersion: 5.16
Contact: linux-mtd@lists.infradead.org
Description:
Exposes node errors. Every node embeds its type.

This counter keeps track of the number of accesses of nodes
with a corrupted node type.

The counter is reset to 0 with a remount.

What: /sys/fs/ubifsX_Y/error_crc
Date: October 2021
KernelVersion: 5.16
Contact: linux-mtd@lists.infradead.org
Description:
Exposes crc errors: every node embeds a crc checksum.

This counter keeps track of the number of accesses of nodes
with a bad crc checksum.

The counter is reset to 0 with a remount.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -19444,6 +19444,7 @@ S: Supported
W: http://www.linux-mtd.infradead.org/doc/ubifs.html
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git next
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git fixes
F: Documentation/ABI/testing/sysfs-fs-ubifs
F: Documentation/filesystems/ubifs-authentication.rst
F: Documentation/filesystems/ubifs.rst
F: fs/ubifs/
Expand Down

0 comments on commit 5822563

Please sign in to comment.