2 This patch fixes a bug where a tape gets "truncated" after
3 doing a restore. The number of files in the catalog do not
4 agree with what Bacula thinks is on tape, then the tape is
6 Apply this patch to version 1.36.1 with:
9 patch -p0 <1.36.1-truncate.patch
14 --- src/stored/read_record.c.orig 2004-09-29 21:11:17.000000000 +0200
15 +++ src/stored/read_record.c 2005-02-15 13:22:12.723140229 +0100
17 Dmsg2(300, "Current postion (file:block) %d:%d\n",
18 dev->file, dev->block_num);
19 jcr->bsr->mount_next_volume = false;
20 - dev->state |= ST_EOT;
21 +// dev->state |= ST_EOT;