X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=5e79fd2f66a7abac0c70d893a186d21928c1b71c;hp=f048a78bb6f7fc1b4f7787ad5ce9bf872d8fbbec;hb=b0522d37ac04aeae5ba01a848a8530ec4785b79d;hpb=e79790783b6826af94196b1ecb74358a675460ed diff --git a/dump/tape.c b/dump/tape.c index f048a78..5e79fd2 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.52 2001/07/20 09:01:46 stelian Exp $"; + "$Id: tape.c,v 1.53 2001/07/20 11:02:45 stelian Exp $"; #endif /* not lint */ #include @@ -443,12 +443,11 @@ flushtape(void) nextblock = slp->tblock; trecno = 0; asize += tenths + returned.clen / density; - csize += returned.clen; blockswritten += ntrec; blocksthisvol += ntrec; if (!pipeout && !unlimited) { if (blocksperfile) { - if ( compressed ? csize + writesize >= blocksperfile * 1024 + if ( compressed ? (bytes_written - tapea_bytes + SLAVES * (writesize + sizeof(struct tapebuf))) >= blocksperfile * 1024 : blocksthisvol >= blocksperfile ) { close_rewind(); startnewtape(0); @@ -693,7 +692,6 @@ rollforward(void) slp->count = lastspclrec + blks + 1 - spcl.c_tapea; slp->inode = curino; asize += tenths + returned.clen / density; - csize += returned.clen; blockswritten += ntrec; blocksthisvol += ntrec; #endif @@ -850,7 +848,6 @@ restore_check_point: enslave(); /* Share open tape file descriptor with slaves */ asize = 0; - csize = 0; blocksthisvol = 0; if (top) newtape++; /* new tape signal */