home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aux / 4023 < prev    next >
Encoding:
Text File  |  1992-11-12  |  3.1 KB  |  65 lines

  1. Newsgroups: comp.unix.aux
  2. Path: sparky!uunet!spool.mu.edu!agate!ames!nsisrv!jagubox!jim
  3. From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  4. Subject: Re: Yet more about 'tc' (blocking issues)
  5. Message-ID: <1241@jagubox.gsfc.nasa.gov>
  6. Lines: 51
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: jagubox.gsfc.nasa.gov
  9. Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  10. Organization: NASA/Goddard Space Flight Center
  11. References: <1228@jagubox.gsfc.nasa.gov> <1992Nov11.032712.26391@noao.edu>
  12. Date: Thu, 12 Nov 1992 12:35:42 GMT
  13.  
  14. tody@noao.edu (Doug Tody) writes:
  15.  
  16. >The 8k limitation is a minor nusiance for A/UX-only usage, e.g., file backups,
  17. >but is a MAJOR problem if the tape drive is to be used to transfer data to or
  18. >from an external, non-A/UX system.
  19.  
  20. >A variable record size is preferred over a fixed block size since for some
  21. >tape formats the record size may have some meaning, and since variable size
  22. >records cause fewer transport problems.  If fixed size blocks are used, one
  23. >system may use, e.g., 1k blocks and the other 8k blocks, and it may not be
  24. >possible to read the tape.
  25.  
  26. I've seen most drivers use fixed block and not variable. Unless, of course,
  27. they're driving 9-track... The most common form of tape drivers are those
  28. that implement blocks via a raw device. This allows sequential and indexed
  29. I/O. Of course, this means that you need to have fixed block sizes.
  30.  
  31. >Cartridge drives support only fixed size blocks, but DAT and Exabyte are
  32. >capable of a variable record size mode as well as a fixed block mode
  33. >(variable record size mode is enabled by setting the device block size to 1
  34. >byte; in variable record mode each read returns one record).
  35.  
  36. Actually, you must set the Block Length parameter in Mode Select to 0.
  37. Some also require a bit to be set. Some (such as the Sony DAT) also
  38. require a Fixed Bit Field be set in READ and WRITE...
  39.  
  40. I believe the "default" for these drives is fixed length though...
  41.  
  42. >                                                             9 track reel
  43. >tape drives support only variable size records.  For DAT and Exabyte a good
  44. >driver will provide different device entries for fixed block mode i/o and
  45. >variable size record i/o, so that the user can decide which to use.  If the
  46. >device is capable of compression, there should be different device entries
  47. >for compression mode and non-compression mode as well.
  48.  
  49. Ahhh infinite resources would definately help make this so... How about
  50. a driver that also plays a little trumpet fanfare when it ejects a tape? :)
  51.  
  52. Seriously though, variable block sizes would be a good addition and
  53. most probably will be added to 'tc' after a while. The trick is getting
  54. all the information about it to implement it. Until then, it is possible
  55. to filter the output to the tapes on the Suns thru a little application
  56. that'll block output at 8k (or the tape'd physical block size)? Or is it
  57. too much to expect Suns to "compromise" but Apples have to??
  58.  
  59. Cheers!
  60. -- 
  61.     Jim Jagielski               | "It is not I who am crazy...
  62.     jim@jagubox.gsfc.nasa.gov   |  it is I who am MAD!"
  63.     NASA/GSFC, Code 734.4       |
  64.     Greenbelt, MD 20771         |            - Ren
  65.