Lines Matching refs:tape
45 int blockswritten = 0; /* number of blocks written on current tape */
46 uint_t tapeno = 0; /* current tape number */
47 daddr32_t filenum = 0; /* current file number on tape */
50 uint_t ntrec = 0; /* # tape blocks in each tape record */
53 int cartridge = 0; /* assume non-cartridge tape */
54 uint_t tracks; /* # tracks on a cartridge tape */
58 int32_t tp_bsize = TP_BSIZE_MIN; /* tape block record size (frag size) */
108 tape = DEFTAPE;
120 * tapes. Fail when we try to access a remote tape.
232 tape = *argv;
233 if (*tape == '\0') {
243 if (strcmp(tape, "-") == 0 && verify) {
269 case 's': /* tape size, feet */
281 msg(gettext("Missing tape size\n"));
299 case 'b': /* blocks per tape write */
379 if (strcmp(tape, "-") == 0) {
427 msg(gettext("Missing tape label name\n"));
439 msg(gettext("Missing tape label name\n"));
491 if (strcmp(tape, "-") == 0) {
493 tape = gettext("standard output");
494 dumpdev = sdumpdev = strdup(tape);
505 } else if (*tape == '+') {
510 if (diskette && strcmp(tape, DEFTAPE) == 0)
511 tape = DISKETTE;
533 * Determine how to default tape size and density
535 * density tape size
539 * Most Sun-2's came with 4 track (20MB) cartridge tape drives,
541 * 9 track (45MB) cartridge tape drives. Some Sun-2's came with
580 msg(gettext("Cannot connect to tape host `%s'\n"), cp);
786 /* LINTED XXX time truncated - tolerate until tape format changes */
903 * with an artificially low tape size.
914 * (1.0 / tsize); /* tape / 0.1" */
916 /* Estimate number of tapes, for old fashioned 9-track tape */
931 * (1.0 / tsize); /* tape / 0.1" */
936 /* count the nodemap on each additional tape */
942 * Also, add tape headers and trailer records.
947 * If the estimated number of tp_bsize tape blocks is greater than
967 * o_esize - header tape records
969 * tape records for files/maps
973 * ntrec is adjusted so a tape record is still 'b' flag
984 "Forcing larger tape block size (%d).\n");
987 alloctape(); /* allocate tape buffers */
1016 otape(1); /* bitmap is the first to tape write */
1040 * We get here if a tape error occurred
1275 * writing to the tape device. it always returns the amount of time
1484 * is a character device (i.e., raw disk or tape).