From: hades Date: Mon, 22 May 2000 14:18:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=de9772cf3d759edff3dd5572ba44706b319c26cb;p=daqdata.git *** empty log message *** --- diff --git a/hadaq/ansiTape.c b/hadaq/ansiTape.c index c82ff84..85b776a 100644 --- a/hadaq/ansiTape.c +++ b/hadaq/ansiTape.c @@ -105,16 +105,6 @@ AnsiTape *openAnsiTape(const char* filename) { 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; @@ -125,16 +115,6 @@ AnsiTape *openAnsiTape(const char* filename) { 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; @@ -192,16 +172,6 @@ int closeAnsiTape(AnsiTape *openTape) { 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);