Author Topic: par2-repair bug  (Read 2514 times)

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
par2-repair bug
« on: July 06, 2009, 06:45:18 pm »
i've noticed from time to time that a repair fails because of to little repairblocks even though alt.binz has calculated and unpaused the necessary blocks itself. in these cases the source of the misstake seems to be the following: when calculating the necessary blocks it calculates the missing blocks block by block but when repairing it seems only to distinguish between found and missing files and all files with missing blocks are counted as missing and all blocks of the missig file are counted as missing to. I've searched through the logs and found an example:

Quote
[12.06.2009 14:39:25] [PAR2&Unrar] xyz.par2 needs 9 more blocks, 34 available
[12.06.2009 14:39:25] [PAR2&Unrar] xyz.par2 unpaused 9 blocks
....
[12.06.2009 14:39:37] [PAR2&Unrar] "c:\xyz.par2" Par2 repair started
[12.06.2009 14:40:14] [PAR2&Unrar] "c:\xyz.par2" Par2 Par2 repair failed
[12.06.2009 14:40:14] [PAR2&Unrar] par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
[12.06.2009 14:40:14] [PAR2&Unrar] Modified for Alt.Binz by Rdl (v.0.4b)
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] par2cmdline comes with ABSOLUTELY NO WARRANTY.
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] This is free software, and you are welcome to redistribute it and/or modify
[12.06.2009 14:40:14] [PAR2&Unrar] it under the terms of the GNU General Public License as published by the
[12.06.2009 14:40:14] [PAR2&Unrar] Free Software Foundation; either version 2 of the License, or (at your
[12.06.2009 14:40:14] [PAR2&Unrar] option) any later version. See COPYING for details.
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] Loading  "xyz.par2".
[12.06.2009 14:40:14] [PAR2&Unrar] Loaded 52 new packets
[12.06.2009 14:40:14] [PAR2&Unrar] Loading "xyz.vol00+01.par2".
[12.06.2009 14:40:14] [PAR2&Unrar] Loaded 1 new packets including 1 recovery blocks
[12.06.2009 14:40:14] [PAR2&Unrar] Loading "xyz.vol07+08.par2".
[12.06.2009 14:40:14] [PAR2&Unrar] Loaded 8 new packets including 8 recovery blocks
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] There are 25 recoverable files and 0 other files.
[12.06.2009 14:40:14] [PAR2&Unrar] The block size used was 1152000 bytes.
[12.06.2009 14:40:14] [PAR2&Unrar] There are a total of 343 data blocks.
[12.06.2009 14:40:14] [PAR2&Unrar] The total size of the data files is 367465982 bytes.
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] Verifying source files:
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r00" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r01" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r02" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r03" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r04" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r05" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r06" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r07" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r08" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r09" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r10" - missing.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r11" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r12" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r13" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r14" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r15" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r16" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r17" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r18" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r19" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r20" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r21" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r22" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.r23" - found.
[12.06.2009 14:40:14] [PAR2&Unrar] Target: "xyz.rar" - found.
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] Scanning extra files:
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar]
[12.06.2009 14:40:14] [PAR2&Unrar] Repair is required.
[12.06.2009 14:40:14] [PAR2&Unrar] 1 file(s) are missing.
[12.06.2009 14:40:14] [PAR2&Unrar] 24 file(s) are ok.
[12.06.2009 14:40:14] [PAR2&Unrar] You have 329 out of 343 data blocks available.
[12.06.2009 14:40:14] [PAR2&Unrar] You have 9 recovery blocks available.
[12.06.2009 14:40:14] [PAR2&Unrar] Repair is not possible.
[12.06.2009 14:40:14] [PAR2&Unrar] You need 5 more recovery blocks to be able to repair.
[12.06.2009 14:40:14] [PAR2&Unrar]