Deleted Added
full compact
tape.c (18286) tape.c (22192)
1/*-
2 * Copyright (c) 1980, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 124 unchanged lines hidden (view full) ---

133 writesize = ntrec * TP_BSIZE;
134 reqsiz = (ntrec + 1) * sizeof(struct req);
135 /*
136 * CDC 92181's and 92185's make 0.8" gaps in 1600-bpi start/stop mode
137 * (see DEC TU80 User's Guide). The shorter gaps of 6250-bpi require
138 * repositioning after stopping, i.e, streaming mode, where the gap is
139 * variable, 0.30" to 0.45". The gap is maximal when the tape stops.
140 */
1/*-
2 * Copyright (c) 1980, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 124 unchanged lines hidden (view full) ---

133 writesize = ntrec * TP_BSIZE;
134 reqsiz = (ntrec + 1) * sizeof(struct req);
135 /*
136 * CDC 92181's and 92185's make 0.8" gaps in 1600-bpi start/stop mode
137 * (see DEC TU80 User's Guide). The shorter gaps of 6250-bpi require
138 * repositioning after stopping, i.e, streaming mode, where the gap is
139 * variable, 0.30" to 0.45". The gap is maximal when the tape stops.
140 */
141 if (blocksperfile == 0)
141 if (blocksperfile == 0 && !unlimited)
142 tenths = writesize / density +
143 (cartridge ? 16 : density == 625 ? 5 : 8);
144 /*
145 * Allocate tape buffer contiguous with the array of instruction
146 * packets, so flushtape() can write them together with one write().
147 * Align tape buffer on page boundary to speed up tape write().
148 */
149 for (i = 0; i <= SLAVES; i++) {

--- 147 unchanged lines hidden (view full) ---

297 slp->tapea = spcl.c_tapea;
298 slp->firstrec = lastfirstrec + ntrec;
299 slp->inode = curino;
300 nextblock = slp->tblock;
301 trecno = 0;
302 asize += tenths;
303 blockswritten += ntrec;
304 blocksthisvol += ntrec;
142 tenths = writesize / density +
143 (cartridge ? 16 : density == 625 ? 5 : 8);
144 /*
145 * Allocate tape buffer contiguous with the array of instruction
146 * packets, so flushtape() can write them together with one write().
147 * Align tape buffer on page boundary to speed up tape write().
148 */
149 for (i = 0; i <= SLAVES; i++) {

--- 147 unchanged lines hidden (view full) ---

297 slp->tapea = spcl.c_tapea;
298 slp->firstrec = lastfirstrec + ntrec;
299 slp->inode = curino;
300 nextblock = slp->tblock;
301 trecno = 0;
302 asize += tenths;
303 blockswritten += ntrec;
304 blocksthisvol += ntrec;
305 if (!pipeout && (blocksperfile ?
305 if (!pipeout && !unlimited && (blocksperfile ?
306 (blocksthisvol >= blocksperfile) : (asize > tsize))) {
307 close_rewind();
308 startnewtape(0);
309 }
310 timeest();
311}
312
313void

--- 546 unchanged lines hidden ---
306 (blocksthisvol >= blocksperfile) : (asize > tsize))) {
307 close_rewind();
308 startnewtape(0);
309 }
310 timeest();
311}
312
313void

--- 546 unchanged lines hidden ---