2
0
forked from Ivasoft/openwrt

kernel: mtdsplit: modify rootfs helpers to provide partition type

Our mtdsplit parsers may want to create partition with name choice based
on partition file system (e.g. SquashFS vs. JFFS2). This patch allows
passing extra argument pointing to variable that will be set properly.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48598
This commit is contained in:
Rafał Miłecki
2016-02-01 12:41:41 +00:00
parent 704473864e
commit e1491b341b
9 changed files with 42 additions and 26 deletions

View File

@@ -38,7 +38,7 @@ static int mtdsplit_parse_brnimage(struct mtd_info *master,
for (rootfs_offset = 0; rootfs_offset < master->size;
rootfs_offset += BRNIMAGE_ALIGN_BYTES) {
ret = mtd_check_rootfs_magic(master, rootfs_offset);
ret = mtd_check_rootfs_magic(master, rootfs_offset, NULL);
if (!ret)
break;
}