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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user