[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)
commitb174be02f3634460ac215d249617dee5ae446ae1
tree6e62d2ff4b3c1cdfe2b36213992bd986ca9a5654
parent40f6b36c6243462fb95d0343237331c423494b03
[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