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 | 7c4834a937fd0b5aeb3d845c0d389de50b15cc3b (patch) | |
tree | 6075088c2c0b4d3c2f783c7a44459e6c970e1e02 /package/mtd/src/jffs2.c | |
parent | 6fe46ff0d100dcef5363e9acb6701321d3f97519 (diff) | |
download | master-187ad058-7c4834a937fd0b5aeb3d845c0d389de50b15cc3b.tar.gz master-187ad058-7c4834a937fd0b5aeb3d845c0d389de50b15cc3b.tar.bz2 master-187ad058-7c4834a937fd0b5aeb3d845c0d389de50b15cc3b.zip |
package/mtd: write remaining data after adding file to the jffs2 partition
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22881 3c298f89-4303-0410-b956-a3cf2f4a3e73
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) |