home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11447 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!gumby!destroyer!ncar!acd!pack
  3. From: pack@acd.acd.ucar.edu (Daniel Packman)
  4. Subject: Troubles with rmt
  5. Message-ID: <1992Nov10.211836.24463@ncar.ucar.edu>
  6. Summary: Only works partially for all tape drives
  7. Sender: news@ncar.ucar.edu (USENET Maintenance)
  8. Organization: Ntl Center for Atmospheric Research, Atmospheric Chemistry
  9. Date: Tue, 10 Nov 1992 21:18:36 GMT
  10. Lines: 31
  11.  
  12. We are having problems with /etc/rmt aka /usr/sbin/rmt
  13. Usually, this is used via rsh or rexec to remotely access
  14. tape drives via a simple series of one or two line ascii requests.
  15. We find that we can open a tape (eg, /dev/rmt0), but if we
  16. rewind the tape drive, we cannot read from it.  We find that
  17. all status commands abort with a core dump.  One can run this
  18. on the local machine for testing:
  19.  
  20. $ rmt
  21. O/dev/rmt1.5
  22. 0       <-- zero is a request for a read-only open
  23. A0      <-- success of the open indicated here
  24. I5      <-- initiate the ioctl
  25. 1       <-- issue the rewind
  26. A1      <-- success of the rewind indicated here
  27. R80     <-- issue a read request
  28. E46     <-- error of the read indicated here
  29. The device is not ready for operation.  <--- english version of E46
  30. C       <-- close the drive
  31. A0      <-- success of the close indicated here
  32. S       <-- try to stat the rmt system
  33. Segmentation fault (core dumped)
  34.  
  35. If we leave out the I5/1 rewind, then the read works as expected.  The
  36. S (stat) command will core dump whether the tape drive has been opend
  37. or not.  Any of this look familiar to anyone?
  38.  
  39. --
  40. Dan Packman     NCAR                             INTERNET: pack@ncar.UCAR.EDU
  41. (303) 497-1427  P.O. Box 3000
  42.                 Boulder, CO  80307-3000        NSI/DECNET: 9583::PACK
  43.