Confusing UBI warning
Sascha Hauer
s.hauer at pengutronix.de
Fri Nov 24 03:08:01 PST 2017
Hi All,
I'm frequently asked about the meaning of the following message:
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 1771:4096, read only 126976 bytes, retry
The confusing part of this message is that UBI seems to expect a short
read in case of an ECC error and the wording of the message seems to
imply that all data has been read successfully.
I digged into the NAND layer to see if there's any chance for a short
read and saw that the NAND layer always reads the full amount of data,
no chance for a short read.
Now there's not only NAND of course. Are there any other mtd devices
where a real short read can happen? Otherwise I would just patch the
"read only xx bytes" part away.
If the "read only" indeed can carry useful information then instead we
might change the message that the part is only printed when the read
number of bytes is actually less than the desired number of bytes.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the linux-mtd
mailing list