freeMem(label);
}
-#if 0
- mtoper->mt_op = MTSETBLK;
- mtoper->mt_count = 80;
- stat = ioctl(tape, MTIOCTOP, mtoper);
- if (stat == -1) {
- msglog(LOG_ERR, "Could not set blocksize to 80!\n");
- exit(-2);
- }
-#endif
-
writeHeader(tape, fileSeqNum, filename);
mtoper->mt_op = MTWEOF;
exit(-2);
}
-#if 0
- mtoper->mt_op = MTSETBLK;
- mtoper->mt_count = BLOCKSIZE;
- stat = ioctl(tape, MTIOCTOP, mtoper);
- if (stat == -1) {
- msglog(LOG_ERR, "Could not set the correct blocksize!\n");
- exit(-2);
- }
-#endif
-
thisAnsiTape->fd = tape;
thisAnsiTape->bytesWritten = 0;
exit(-2);
}
-#if 0
- mtoper->mt_op = MTSETBLK;
- mtoper->mt_count = 80;
- stat = ioctl(openTape->fd, MTIOCTOP, mtoper);
- if (stat == -1) {
- msglog(LOG_ERR, "Could not set blocksize to 80!\n");
- exit(-2);
- }
-#endif
-
writeTrailer(openTape->fd, openTape->fileSeqNum, openTape->bytesWritten, openTape->filename);
stat = close(openTape->fd);