home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / sysadmin / 4421 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
  3. From: louie@sayshell.umd.edu (Louis A. Mamakos)
  4. Subject: Re: WangDAT: How to fseek() ?
  5. Message-ID: <1992Jul28.215226.9960@ni.umd.edu>
  6. Keywords: cron
  7. Sender: usenet@ni.umd.edu (USENET News System)
  8. Nntp-Posting-Host: sayshell.umd.edu
  9. Organization: University of Maryland College Park
  10. References: <1992Jul26.115817.27702@mic.ucla.edu> <nq9sp2o@zuni.esd.sgi.com>
  11. Date: Tue, 28 Jul 1992 21:52:26 GMT
  12. Lines: 29
  13.  
  14. In article <nq9sp2o@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
  15. >In <1992Jul26.115817.27702@mic.ucla.edu> iwelch@agsm.ucla.edu (Ivo Welch) writes:
  16. >| I would like to write a few programs to lay out our large databases onto a DAT
  17. >| tape.  Unfortunately,  I  lack all expertise with   tape  drives,  and my Wang
  18. >| manual is less than explicit.
  19. >| 
  20. >| I understand how to use devices (/dev/rxt0, /dev/nrxt0) to read and write data
  21. >| byte by byte and  file by  file.  What I   really  would like, though, is  the
  22. >| additional ability to  keep an  index on   disk,  and do a  fast fseek()  that
  23. >| employs the WangDATs fast seek facilities. How would I do this in a C program?
  24. >| 
  25. >| I.e. could some kind sole please send me replacements  for fseek() and ftell()
  26. >| with such DAT tape drives, please?
  27. >
  28. >The drive has the ability to do fast seeks, but fseek and ftell are
  29. >unlikely to work.  It may also be that the NeXT tape drive doesn't
  30. >provide this functionality.
  31.  
  32. There is no "built-in" support for random seeking to blocks on DAT
  33. tape media, but it is not too difficult to issue "raw" SCSI commands
  34. to the tape driver with the appropriate commands to perform the
  35. seeking.  
  36.  
  37. Seeking is the easy part; maintaining the database of where to seek
  38. *to* is the tough part.  This is one of the features of the Safetynet
  39. program mentioned in the original article.
  40.  
  41. louie
  42.  
  43.