[PATCH v3 06/10] ubi: Add mean erase counter sysfs attribute

Rickard Andersson
2024-10-11T13:01:21Z

A mean erase counter gives a better understanding of the flash
wear.

Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Rickard Andersson <rickard.andersson@axis.com>
---
Documentation/ABI/stable/sysfs-class-ubi | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/Documentation/ABI/stable/sysfs-class-ubi b/Documentation/ABI/stable/sysfs-class-ubi
index a6b324014692..535a3e6dab12 100644
--- a/Documentation/ABI/stable/sysfs-class-ubi
+++ b/Documentation/ABI/stable/sysfs-class-ubi
@@ -219,3 +219,10 @@ Description:
Logical eraseblock size of this volume. Equivalent to logical
eraseblock size of the device aligned on the volume alignment
value.
+
+What: /sys/class/ubi/ubiX/mean_ec
+Date: October 2024
+KernelVersion: 6.X
+Contact: linux-mtd@lists.infradead.org
+Description:
+ Mean physical eraseblock erase counter value.