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 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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!