mtd: Add sysfs attribute for mtd OOB available size
Expose mtd OOB available size by sysfs file. Then users can get available OOB size by accessing /sys/class/mtd/mtdX/oobavail. Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:

committed by
Boris Brezillon

parent
c3c9a2c4b9
commit
7cc9aa669a
@@ -232,3 +232,11 @@ Description:
|
||||
of the parent (another partition or a flash device) in bytes.
|
||||
This attribute is absent on flash devices, so it can be used
|
||||
to distinguish them from partitions.
|
||||
|
||||
What: /sys/class/mtd/mtdX/oobavail
|
||||
Date: April 2018
|
||||
KernelVersion: 4.16
|
||||
Contact: linux-mtd@lists.infradead.org
|
||||
Description:
|
||||
Number of bytes available for a client to place data into
|
||||
the out of band area.
|
||||
|
Reference in New Issue
Block a user