Revert "fstools: Add support to read-only MTD partitions (eg. recovery images)"
authorPetr Štetiar <ynezz@true.cz>
Tue, 21 Jan 2020 16:11:07 +0000 (17:11 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 21 Jan 2020 16:12:36 +0000 (17:12 +0100)
commitdeb745f82b93b3bd12273cfb16deb7417fc555ef
tree3b7acd24e2f0c91d8622cde89f49ba62c3392e20
parentf5c7c1813f52e6d7b59ecfb2f9f95e69b05b1980
Revert "fstools: Add support to read-only MTD partitions (eg. recovery images)"

This reverts commit f5c7c1813f52e6d7b59ecfb2f9f95e69b05b1980 which needs
more work and testing as it broke at least jffs2 overlays at least on
ath79 platform, marking them as read-only, thus unusable:

 jffs2_build_filesystem(): erasing all blocks after the end marker...
 jffs2: Erase at 0x009e0000 failed immediately: -EROFS. Is the sector locked?

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2020-January/021344.html
Reported-by: Steve Brown <sbrown@ewol.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
libfstools/mtd.c