]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] st: show options currently set in sysfs
authorKai Makisara <Kai.Makisara@kolumbus.fi>
Sun, 24 Feb 2008 20:29:12 +0000 (22:29 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:15:40 +0000 (12:15 -0500)
commitd0d0ea8cce16a9f4a586b17f9da6c34b14912bfa
tree6e62d2ff4b3c1cdfe2b36213992bd986ca9a5654
parent407ab53d222a4c242afc939d7cbc09d499cc271b
[SCSI] st: show options currently set in sysfs

Show the current binary tape driver and mode options is sysfs. A file
(options) is created in each directory in /sys/class/scsi_tape. The files
contain masks showing the options. The mask bit definitions are the same as
used when setting the options using the MTSETDRVBUFFER function in the
MTIOCTOP ioctl (defined in include/linux/mtio.h). For example:
> cat /sys/class/scsi_tape/nst0/options
0x00000d07

[jejb: updated doc with correction from Randy Dunlap]

Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Documentation/scsi/st.txt
drivers/scsi/st.c