package/mtd: write remaining data after adding file to the jffs2 partition

SVN-Revision: 22881
This commit is contained in:
Gabor Juhos
2010-09-03 18:14:32 +00:00
parent 6734c999af
commit 2a541325d3
3 changed files with 32 additions and 10 deletions

View File

@@ -247,7 +247,7 @@ int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
#ifdef target_brcm
trx_fixup(outfd, mtd);
#endif
return 0;
return (mtdofs - ofs);
}
void mtd_parse_jffs2data(const char *buf, const char *dir)