diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-09-03 18:14:32 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-09-03 18:14:32 +0000 |
commit | 2a541325d3db510c2b5aee30dc88c72255a797c0 (patch) | |
tree | 1bb4a97aa965348498a9c6cedeb907d5cc018cfc /package/mtd/src/jffs2.c | |
parent | 6734c999af7372e8e8220efcf30fee1e6463b87c (diff) | |
download | upstream-2a541325d3db510c2b5aee30dc88c72255a797c0.tar.gz upstream-2a541325d3db510c2b5aee30dc88c72255a797c0.tar.bz2 upstream-2a541325d3db510c2b5aee30dc88c72255a797c0.zip |
package/mtd: write remaining data after adding file to the jffs2 partition
SVN-Revision: 22881
Diffstat (limited to 'package/mtd/src/jffs2.c')
-rw-r--r-- | package/mtd/src/jffs2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/jffs2.c b/package/mtd/src/jffs2.c index 49a7d56120..512f22278c 100644 --- a/package/mtd/src/jffs2.c +++ b/package/mtd/src/jffs2.c @@ -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) |