SUMMARY: SGI tar tapes

From: Dan Notov <danno_at_large.com>
Date: Mon, 17 Jun 1996 17:32:29 -0600

First off, thanks to many rapid responses I received. We received the
correct answer in time to get the work done before deadline.

The answer was finding the correct blocking factor for the tape. This tape
was blocked at 204800 bytes per block. A red herring was the byte-swapping
issue. As one respondant mentioned, IRIX has done byte-swapping on all
Post-5.0 releases.

Also, a kind contributer provided a small C program that will read a tape &
determine the blocking factor for you. I have included the code below.

Thanks again!

/danno

/* From: alan_at_nabeth.cxo.dec.com */
#include <stdio.h>

main()
{
        char buf[1024*1024] ;
        int rc ;
        rc = read(fileno(stdin), buf, sizeof(buf)) ;

        if( rc == -1 )
                ; /* an error */
        else
                printf("Block size = %d\n", rc) ;

        return 0 ;
}
--
     +-----------------------------------------------------------+
     | Daniel S. Notov  +-------------+  Consultant _at_ DEC        |
     | mailto:danno_at_large.com  +------+  +1-303-766-2680 V       |
     +-----------------------------------------------------------+
     | "Certainly the game is rigged. Don't let that stop you;   |
     | if you don't bet, you can't win." -Lazarus Long           |
     +-----------------------------------------------------------+
Received on Tue Jun 18 1996 - 02:41:32 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT