X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Ftape.c;h=b779fd72517dd904a17b3430cd2a8d90790e4081;hp=3d673b62b740c9c1057e70a2ef6c3d0cd9dec469;hb=4cef8778dc5913718fc8a1963fd58993c14657ba;hpb=62614cf50e5f719954f23b7a9819a70b2d3ec44c diff --git a/restore/tape.c b/restore/tape.c index 3d673b6..b779fd7 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -42,7 +42,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.92 2007/02/22 20:16:23 stelian Exp $"; + "$Id: tape.c,v 1.93 2009/07/23 14:10:39 stelian Exp $"; #endif /* not lint */ #include @@ -474,7 +474,6 @@ getvol(long nextvol) if (nextvol == 1) { tapesread = 0; gettingfile = 0; - tpblksread = 0; blksread = 0; } if (pipein) { @@ -1333,7 +1332,11 @@ loop: break; } } - if (gethead(&spcl) == GOOD && size > 0) { + while (gethead(&spcl) != GOOD) { + fprintf(stderr, "Incorrect block for %s at %ld blocks\n", + curfile.name, (long)blksread); + } + if (size > 0) { if (spcl.c_type == TS_ADDR) goto loop; Dprintf(stdout,