tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dan Notov <danno () large ! com>
To: tru64-unix-managers
Subject: SUMMARY: SGI tar tapes
Date: Mon, 17 Jun 1996 23:32:29 +0000	[thread overview]
Message-ID: <96076333621431.tru64-unix-managers.marc@archive.invalid> (raw)

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@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 @ DEC        |
     | mailto:danno@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           |
     +-----------------------------------------------------------+

                 reply	other threads:[~1996-06-17 23:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox