diff options
author | Daniel Drake <dsd@laptop.org> | 2011-06-20 16:42:34 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2011-06-20 16:42:34 (GMT) |
commit | 1cf26d3e28d3048d349cc67ce7508a652d358583 (patch) | |
tree | 0316496a4a26d89d337214c21fc18352df7f7d56 | |
parent | aa30fd5f3dafb8b3d7d40c0d80346230dd02cb3f (diff) |
zhashfs: update eblock counting workaround
This workaround broke with recent firmware revisions in this area.
Update it to work with the latest firmware versions.
-rw-r--r-- | bin/zhashfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/zhashfs.c b/bin/zhashfs.c index 161bb75..12a0ffb 100644 --- a/bin/zhashfs.c +++ b/bin/zhashfs.c @@ -139,9 +139,11 @@ int main(int argc, char **argv) LTC_ARGCHK(outfile != NULL); LTC_ARGCHK(fputs("[ifndef] #eblocks-written\n", outfile) >= 0); + LTC_ARGCHK(fputs("[ifdef] last-eblock#\n", outfile) >= 0); LTC_ARGCHK(fputs(": pdup ( n -- n' ) dup last-eblock# max ;\n", outfile) >= 0); LTC_ARGCHK(fputs("also nand-commands patch pdup dup zblock: previous\n", outfile) >= 0); LTC_ARGCHK(fputs("[then]\n", outfile) >= 0); + LTC_ARGCHK(fputs("[then]\n", outfile) >= 0); /* open zdata file */ zfile = fopen(argv[5], "wb"); |