[PATCH 1/2] ubi: Expose interface for reading erase counters

Richard Weinberger richard at nod.at
Thu Nov 21 02:37:34 PST 2024


Rickard,

----- Ursprüngliche Mail -----
> Von: "Rickard X Andersson" <rickard.andersson at axis.com>
> An: "richard" <richard at nod.at>, "chengzhihao1" <chengzhihao1 at huawei.com>, "linux-mtd" <linux-mtd at lists.infradead.org>,
> "rickard314 andersson" <rickard314.andersson at gmail.com>
> CC: "Rickard X Andersson" <rickard.andersson at axis.com>, "kernel" <kernel at axis.com>
> Gesendet: Donnerstag, 21. November 2024 11:21:56
> Betreff: [PATCH 1/2] ubi: Expose interface for reading erase counters

> Using the ioctl command 'UBI_IOCECNFO' user space can obtain mean
> and max erase counters of a device. If fastmap is enabled also erase
> counter information of that area and its complementary area is
> provided.

the idea was having an ioctl interface to get the EC counters of all PEBs.
Such that userspace can do the mean/max/min calculations on it's own.
That way the kernel interface is clean and generic. Userspace can interpret
the data as it needs.

Thanks,
//richard



More information about the linux-mtd mailing list