* SUMMARY: SGI tar tapes
@ 1996-06-17 23:32 Dan Notov
0 siblings, 0 replies; only message in thread
From: Dan Notov @ 1996-06-17 23:32 UTC (permalink / raw)
To: tru64-unix-managers
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 |
+-----------------------------------------------------------+
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-06-17 23:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-17 23:32 SUMMARY: SGI tar tapes Dan Notov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox