openwrt-mirror/target/linux/generic/files/drivers/mtd/mtdsplit
Jan Hoffmann 6fa1775348 kernel: mtdsplit_h3c_vfs: return 0 for non-fatal errors
Since Linux 6.7, introduced with commit 5c2f7727d437 ("mtd: mtdpart:
check for subpartitions parsing result"), errors during subpartition
parsing cause all MTD partitions to be torn down.

Since the current mtdsplit driver for devices using H3C VFS returns
-EINVAL if it does not find a file system containing an OpenWrt image,
this makes initial installation of OpenWrt impossible.

Work around this by returning 0 when the file system contains unexpected
data. Also print a message in this case to show what is going on.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/19475
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-07-27 18:24:50 +02:00
..
Kconfig generic: add mstc-boot mtdsplit parser 2025-07-20 16:12:56 +02:00
Makefile generic: add mstc-boot mtdsplit parser 2025-07-20 16:12:56 +02:00
mtdsplit_bcm63xx.c kernel: mtdsplit: add support for BCM63XX CFE firmware 2021-02-22 18:09:03 +01:00
mtdsplit_bcm_wfi.c kernel: mtd: bcm-wfi: add cferam name support 2023-06-14 23:21:34 +02:00
mtdsplit_brnimage.c
mtdsplit_cfe_bootfs.c kernel: create bootfs partition when parsing on BCM4908 2021-03-24 18:22:37 +01:00
mtdsplit_elf.c kernel: mtdsplit: support ELF loader splitting 2020-09-09 20:41:50 +03:00
mtdsplit_eva.c kernel: Add missing includes mtdsplit_*.c 2019-07-07 17:37:26 +02:00
mtdsplit_fit.c kernel: mtdsplit: fix fit rootfs_data split 2024-07-07 20:58:56 +08:00
mtdsplit_h3c_vfs.c kernel: mtdsplit_h3c_vfs: return 0 for non-fatal errors 2025-07-27 18:24:50 +02:00
mtdsplit_jimage.c treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
mtdsplit_lzma.c generic: mtdsplit: include appropriate header for kernel 6.12 2025-04-30 16:26:46 +02:00
mtdsplit_minor.c kernel: mtdsplit_minor: accept bootimage filename 2024-10-30 11:15:34 +01:00
mtdsplit_mstc_boot.c generic: add mstc-boot mtdsplit parser 2025-07-20 16:12:56 +02:00
mtdsplit_seama.c kernel: Add missing includes mtdsplit_*.c 2019-07-07 17:37:26 +02:00
mtdsplit_seil.c kernel: add seil-fw mtdsplit driver for IIJ SEIL devices 2023-10-31 14:02:01 +01:00
mtdsplit_squashfs.c kernel: rename mtdpart_get_master to mtd_get_master 2020-11-13 13:16:51 +01:00
mtdsplit_tplink.c kernel: Add missing includes mtdsplit_*.c 2019-07-07 17:37:26 +02:00
mtdsplit_trx.c kernel: Add missing includes mtdsplit_*.c 2019-07-07 17:37:26 +02:00
mtdsplit_uimage.c kernel: mtdsplit_uimage: return 0 if not fatal 2025-06-19 20:51:18 +02:00
mtdsplit_wrgg.c kernel: Add missing includes mtdsplit_*.c 2019-07-07 17:37:26 +02:00
mtdsplit.c
mtdsplit.h