🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.sysadmin
4 messages
4 total messages Started by Ivo Welch Sun, 26 Jul 1992 18:58
WangDAT: How to fseek() ?
#241
Author: Ivo Welch
Date: Sun, 26 Jul 1992 18:58
19 lines
1227 bytes
I would like to write a few programs to lay out our large databases onto a DAT
tape.  Unfortunately,  I  lack all expertise with   tape  drives,  and my Wang
manual is less than explicit.

I understand how to use devices (/dev/rxt0, /dev/nrxt0) to read and write data
byte by byte and  file by  file.  What I   really  would like, though, is  the
additional ability to  keep an  index on   disk,  and do a  fast fseek()  that
employs the WangDATs fast seek facilities. How would I do this in a C program?

I.e. could some kind sole please send me replacements  for fseek() and ftell()
with such DAT tape drives, please?

Thanks for any information.

/ivo welch

PS: Has anyone used SafetyNet? It got a rave review, but my efforts to contact
the author has been unsuccessful.
Re: WangDAT: How to fseek() ?
#251
Author: Dave Olson
Date: Mon, 27 Jul 1992 05:25
20 lines
1575 bytes
In <1992Jul26.115817.27702@mic.ucla.edu> iwelch@agsm.ucla.edu (Ivo Welch) writes:
| I would like to write a few programs to lay out our large databases onto a DAT
| tape.  Unfortunately,  I  lack all expertise with   tape  drives,  and my Wang
| manual is less than explicit.
| 
| I understand how to use devices (/dev/rxt0, /dev/nrxt0) to read and write data
| byte by byte and  file by  file.  What I   really  would like, though, is  the
| additional ability to  keep an  index on   disk,  and do a  fast fseek()  that
| employs the WangDATs fast seek facilities. How would I do this in a C program?
| 
| I.e. could some kind sole please send me replacements  for fseek() and ftell()
| with such DAT tape drives, please?

The drive has the ability to do fast seeks, but fseek and ftell are
unlikely to work.  It may also be that the NeXT tape drive doesn't
provide this functionality.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
Re: WangDAT: How to fseek() ?
#281
Author: Louis A. Mamakos
Date: Tue, 28 Jul 1992 21:52
28 lines
1976 bytes
In article <nq9sp2o@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
>In <1992Jul26.115817.27702@mic.ucla.edu> iwelch@agsm.ucla.edu (Ivo Welch) writes:
>| I would like to write a few programs to lay out our large databases onto a DAT
>| tape.  Unfortunately,  I  lack all expertise with   tape  drives,  and my Wang
>| manual is less than explicit.
>| 
>| I understand how to use devices (/dev/rxt0, /dev/nrxt0) to read and write data
>| byte by byte and  file by  file.  What I   really  would like, though, is  the
>| additional ability to  keep an  index on   disk,  and do a  fast fseek()  that
>| employs the WangDATs fast seek facilities. How would I do this in a C program?
>| 
>| I.e. could some kind sole please send me replacements  for fseek() and ftell()
>| with such DAT tape drives, please?
>
>The drive has the ability to do fast seeks, but fseek and ftell are
>unlikely to work.  It may also be that the NeXT tape drive doesn't
>provide this functionality.

There is no "built-in" support for random seeking to blocks on DAT
tape media, but it is not too difficult to issue "raw" SCSI commands
to the tape driver with the appropriate commands to perform the
seeking.  

Seeking is the easy part; maintaining the database of where to seek
*to* is the tough part.  This is one of the features of the Safetynet
program mentioned in the original article.

louie
Re: WangDAT: How to fseek() ?
#302
Author: Ivo Welch
Date: Wed, 29 Jul 1992 18:22
28 lines
1611 bytes
> There is no "built-in" support for random seeking to blocks on DAT
> tape media, but it is not too difficult to issue "raw" SCSI commands
> to the tape driver with the appropriate commands to perform the
> seeking.  

Yes, but the question remains: WHAT ARE THE COMMANDS TO DO SO FOR WANGDATS?

(I got 4 messages asking me to forward any responses; unfortunately I have not
received any). Again, has anybody written C functions that can substitute for
fseek() and ftell() (probably over the whole tape, rather than a file, which
would be just fine).

I can no longer get a hold of the author of Safteynet, nor will Safetynet do
what I need: maintaining data-bases to be read by programs. I do not primarily
want to increase dump/tar/etc speed!!

/ivo welch
Newsgroups: comp.sys.next.sysadmin
Subject: Re: WangDAT: How to fseek() ?
Summary: 
Expires: 
References: <1992Jul26.115817.27702@mic.ucla.edu> <nq9sp2o@zuni.esd.sgi.com> <1992Jul28.215226.9960@ni.umd.edu>
Sender: 
Followup-To: 
Distribution: 
Organization: UCLA, Anderson Graduate School Of Management
Keywords: cron
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads