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
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected] (uni)
[email protected] (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Discuss mailing list
[email protected]
http://lists.illumos.org/m/listinfo/discuss