Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c501b181 authored by Tanya Brokhman's avatar Tanya Brokhman
Browse files

mtd: ubi: Add sysfs entry to force all pebs' scan



A given eraseblock can be read many times or not at all.
We do not have the account of such eraseblocks that have
not been accessed since a pre-defined threshold interval.
By means of scanning the entire flash device it is possible to identify
all such eraseblocks.

Add a sysfs entry to force scan on all the PEBs on demand basis.

The sysfs entry would be available under /sys/class/ubi/ubiX/peb_scan
 - echo 1 to this entry would trigger the scan, ignored if in progress
 - On reading returns the scan status (1 = Scan executing, 0 = Scan not
   executing)

Change-Id: Ifeb966808db7b382f7aeb009bbf10b8a68f87f70
Signed-off-by: default avatarPratibhasagar V <pratibha@codeaurora.org>
Signed-off-by: default avatarTatyana Brokhman <tlinder@codeaurora.org>
parent 62ff74ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment