libfstools/mtd: attempt to read from OOB data if empty space is found
authorFelix Fietkau <nbd@nbd.name>
Thu, 9 Apr 2020 11:19:08 +0000 (13:19 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 9 Apr 2020 12:17:00 +0000 (14:17 +0200)
commitc80f7002114f65dc40895c9064c077d9631b8f6e
tree5a53f631980c68a6854d314f13956148f706241a
parent830441d790d67147dc9d9bca4a9d3d4a7228e367
libfstools/mtd: attempt to read from OOB data if empty space is found

When using jffs2 on NAND flash, it stores its magic in the OOB data on
newly erased blocks. This change fixes identifying the filesystem type.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
libfstools/mtd.c