libscg is not installed by default on some systems... like OI.

On Solaris derived platforms (at least apart from SchilliX), the
approved way to do this is through uscsi.

        - Garrett

On Thu, 2011-03-10 at 11:06 +0100, Joerg Schilling wrote:
> Cyril Plisko <[email protected]> wrote:
> 
> > On Thu, Mar 10, 2011 at 1:15 AM, Jason King <[email protected]> 
> > wrote:
> > > You'd probably need to write a C program that opens the device
> > > (assuming one is created on the system) and use the uscsi interface to
> > > issue the commands as ioctls.
> >
> >
> > Or use sg_senddiag from sg3_utils package.
> 
> Isn't this Linux only?
> 
> The OS independent way of sending SCSI commands to arbitrary targets (since 
> August 1986) is libscg. It is e.g. part of cdrtools.
> 
> BTW: There is also sformat(1), see:
> 
>       ftp://ftp.berlios.de/pub/schily
> 
> that includes a lot of SCSI handling interfaces for disks. sformat was the 
> first command that allows to format disks while SunOS was still running (Sun 
> forced their customers to boot into a stand alone format utility at that 
> time) 
> and sformat was the example for the format utility that has been later 
> written 
> by Sun.
> 
> Jörg
> 



_______________________________________________
Discuss mailing list
[email protected]
http://lists.illumos.org/m/listinfo/discuss

Reply via email to