home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / sysadmin / 5099 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.7 KB  |  35 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!gatech!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: HELP: Connecting a SCSI Scanner
  5. Message-ID: <1992Sep9.195218.3632@ni.umd.edu>
  6. Keywords: SCSI, Scanner, help
  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: <1992Aug28.215658.23753@galileo.physics.arizona.edu> <1992Sep08.142141.22673@rchland.ibm.com>
  11. Date: Wed, 9 Sep 1992 19:52:18 GMT
  12. Lines: 21
  13.  
  14. In article <1992Sep08.142141.22673@rchland.ibm.com> tpg@rchland.vnet.ibm.com (Terry Gliedt) writes:
  15. >Now when the NeXT boots, the system is doing some sort of reset to each of the
  16. >SCSI devices. I presume this is some sort of low-level SCSI reset command. I'd
  17. >like to have some means to reset the device to recover from this error state. I
  18. >did not see anything in ioctl.h and in a few other includes. I'd appreciate some
  19. >mail from anyone who can give me some leads (Jiro??).
  20.  
  21. On you're 2.x system, look in /usr/include/nextdev/scsireg.h.  (On 3.0
  22. systems, who the %^*&$# know where they put it.  You can bet it's a
  23. pretty long pathname, though.  But I digress...)  
  24.  
  25. You'll see that there is an ioctl operation (SGIOCRST) you can perform
  26. on the raw SCSI device, /dev/sg0, which looks like it performs a SCSI
  27. bus reset.  You'll need to be root to do this.  Also, this sure seems
  28. like it has the great potential to hose up an I/O which might be
  29. pending on other SCSI devices (like a SCSI disk).  Note that probably
  30. performs a SCSI *BUS* reset and such a thing isn't specific to a
  31. particular device on the bus.  You'll have to be real careful using
  32. this..
  33.  
  34. louie
  35.