Re: [ILUG] SCSI Programming

From: Paul Jakma (paul at domain clubi.ie)
Date: Mon 11 Oct 1999 - 21:40:53 IST


On Tue, 12 Oct 1999, Ching Haydee wrote:

  hi everyone,
    i would just like to ask have anyone tried SCSI programming? Like how do
  you send SCSI Inquiry command to a SCSI device? Please tell me if someone
  can share with me how it is done in a Solaris 7 platform.
  
    any idea will be greatly appreciated.
  
    thanks a lot.
  -haydee : )

don't know about solaris but Linux has the SCSI-generic interface.
This allows you to send arbitrary scsi command blocks to a device.
But it's allegedly not very good, esp wrt to error handling.

have a look at http://www.torque.net/sg/ which is the SCSI-generic
homepage and has a few sample programmes to look at.

See also ftp://globalfilesystem.org/pub/GFS/tools/ -> fwd, a utility
to upgrade the firmware on Seagate disks. The interesting bit about
this programme is that it has both a linux-sg backend and a Solaris
backend, which might help.

regards,

-- 
Paul Jakma	paul at domain clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
Documentation is like sex: when it is good, it is very, very good; and
when it is bad, it is better than nothing.
		-- Dick Brandon


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:42 GMT