libfstools: skip JFFS2 padding on block devices
authorDaniel Golle <daniel@makrotopia.org>
Tue, 18 Oct 2022 16:17:29 +0000 (17:17 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 18 Oct 2022 18:34:41 +0000 (19:34 +0100)
commitee54c6bce17c48a725eadcc313b6ca8445f9ec8c
tree3f63843509ba97aba13b2221695e9ab800dc21e0
parent81785c1b9a9c1b797e7406a3542c01d972c61315
libfstools: skip JFFS2 padding on block devices

Images also used on devices with NOR flash may come with JFFS2 deadc0de
marking and padding up to the largest NOR erase size.
Skip that padding and take it into account when extracting sysupgrade
backup from mmc/block partition.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/common.c