samst - Driver for SCSI media changers and optical drives
samst@
target ,
lun :
a
SUNWsamfs
The samst target driver is obsolete, use the sgen target driver for library control.
This driver handles embedded
SCSI-2
and
CCS
-compatible
SCSI
media changers, optical drives, CD-ROM drives and
non-motion I∕O for tape drives
The type of device is determined using the
SCSI
inquiry command.
The only I∕O supported for optical devices is raw.
samst
supports 512-, 1024-, 2048-, and 4096-byte sector
sizes for optical media.
The names of the raw files are found in
∕dev∕samst
.
If O_NDELAY or O_NONBLOCK is specified on the open, then the device does not have to be in the ready state for the open to succeed. This allows the opening of a device for initialization or to check the media type.
EACCES
Permission denied.
EBUSY
The device was opened exclusively by another thread.
EFAULT
The argument was a bad address.
EINVAL
Invalid argument.
EIO
An I∕O error occurred.
ENOTTY
This indicates that the device does not support the requested ioctl function.
ENXIO
During opening, the device did not exist.
∕kernel∕drv∕samst.conf
driver configuration file
∕dev∕samst∕c
n t
n u
n raw files
where:
c
n controller n
t
n SCSI target id n (0-6)
u
n SCSI LUN n (0-7)
samdev
(1M).
driver.conf
(4).
ANSI Small Computer System Interface-2 (SCSI-2)
Error for command 'command name' Error Level: Fatal Requested Block n, Error Block: m Sense Key: sense key name Vendor 'vendor name': ASC = 0xa (ASC name), ASCQ = 0xb, FRU = 0xcThe command indicated by command name failed. The Requested Block is the block where the transfer started and the Error Block is the block that caused the error. Sense Key, ASC, and ASCQ information is returned by the target in response to a request sense command.
Check Condition on REQUEST SENSEA REQUEST SENSE command completed with a check condition. The original command will be retried a number of times.
Not enough sense informationThe request sense data was less than expected.
Request Sense couldn't get sense dataThe REQUEST SENSE command did not transfer any data.
Reservation ConflictThe drive was reserved by another initiator.
SCSI transport failed: reason 'xxxx' : {retrying|giving up}The host adapter has failed to transport a command to the target for the reason stated. The driver will either retry the command or, ultimately, give up.
Unhandled Sense Key nThe REQUEST SENSE data included an invalid sense key.
Unit not Ready. Additional sense code 0xnThe drive is not ready.
device busy too longThe drive returned busy during a number of retries.
incomplete read∕write - retrying∕giving upThere was a residue after the command completed normally.
logical unit not readyThe unit is not ready.
This driver can accept removable media
devices that identify themselves as
"direct access" by setting the variable samst_direct
to
a nonzero value.
You can do this using the set
command in the ∕etc∕system
file (see system
(4)).
Whenever a new version of StorageTek QFS or Oracle HSM is installed, the existing
samst.conf
file is copied to samst.conf.MMDDYY
for
reference and backup purposes.