]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Mon, 22 May 2000 14:18:42 +0000 (14:18 +0000)
committerhades <hades>
Mon, 22 May 2000 14:18:42 +0000 (14:18 +0000)
hadaq/ansiTape.c

index c82ff84f74d2b5a35def87e7ddd15bb9fb68e946..85b776ab7528b7df8fed1a9f2b89391dd62bdfb7 100644 (file)
@@ -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);