- if (!pipeout && !unlimited && (blocksperfile ?
- (blocksthisvol >= blocksperfile) : (asize > tsize))) {
- close_rewind();
- startnewtape(0);
+ if (!pipeout && !unlimited) {
+ if (blocksperfile) {
+ if ( compressed ? csize >= blocksperfile * 1024
+ : blocksthisvol >= blocksperfile ) {
+ close_rewind();
+ startnewtape(0);
+ }
+ }
+ else if (asize > tsize) {
+ close_rewind();
+ startnewtape(0);
+ }