diff options
| author | Kai Mäkisara <kai.makisara@kolumbus.fi> | 2004-02-21 21:51:29 -0600 |
|---|---|---|
| committer | James Bottomley <jejb@raven.il.steeleye.com> | 2004-02-21 21:51:29 -0600 |
| commit | b5b26f78542ff30e259973c211d89f1cbd7f1369 (patch) | |
| tree | 6340ddd37e8c221eee588a4ebd48b2643c176207 /include/linux/buffer_head.h | |
| parent | 25c1b1d6b3ffa9922995946c6f979a234e05a2ba (diff) | |
[PATCH] Sysfs class support for SCSI tapes
This is a new version of the patch I sent two weeks ago. The code is the
same but now diffed against 2.6.3. Some documentation has been added.
Creation and removal of the st device files has been tested with
udev-018.
The patch adds support for /sys/class/scsi_tape. It also removes the links
to/from the st files in /sys/cdev/major.
A file is created for each mode and rewind/non-rewind device for each
tape drive. Here is an example for one drive:
> ls /sys/class/scsi_tape/
st0m0 st0m0n st0m1 st0m1n st0m2 st0m2n st0m3 st0m3n
In addition to the automatic links (dev, driver), each directory contains
files that export some of the mode parameters:
> ls /sys/class/scsi_tape/st0m0
default_blksize default_density dev driver
default_compression defined device
A link is made from the SCSI device directory back to the mode 0
auto-rewind class file:
> ls -l
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.1/host1/1:0:5:0/tape
lrwxrwxrwx 1 root root 39 2004-02-05 23:14
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.1/host1/1:0:5:0/tape ->
../../../../../../class/scsi_tape/st0m0
Diffstat (limited to 'include/linux/buffer_head.h')
0 files changed, 0 insertions, 0 deletions
