2 This patch fixes the calculation for the total number of files
3 to be restored or verified by not double counting files that are
4 split across a tape file or across tapes.
6 To apply this patch, you must first have applied 1.36.0-verify.patch.
11 patch -p0 <1.36.0-verify-2.patch
17 ===================================================================
18 RCS file: /cvsroot/bacula/bacula/src/dird/bsr.c,v
19 retrieving revision 1.16
21 --- src/dird/bsr.c 29 Oct 2004 22:11:43 -0000 1.16
22 +++ src/dird/bsr.c 4 Nov 2004 10:37:37 -0000
26 uint32_t total_count = 0;
27 + uint32_t LastIndex = 0;
31 * For a given volume, loop over all the JobMedia records.
33 fprintf(fd, "Count=%u\n", count);
36 + /* If the same file is present on two tapes or in two files
37 + * on a tape, it is a continuation, and should not be treated
38 + * twice in the totals.
40 + if (!first && LastIndex == bsr->VolParams[i].FirstIndex) {
44 + LastIndex = bsr->VolParams[i].LastIndex;
46 write_bsr(ua, bsr->next, fd);