]> git.hungrycats.org Git - linux/commit
[PATCH] Add char_devs to st
authorKai Mäkisara <kai.makisara@kolumbus.fi>
Tue, 30 Dec 2003 05:17:13 +0000 (23:17 -0600)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Tue, 30 Dec 2003 05:17:13 +0000 (23:17 -0600)
commit0f535a6aed3ba369f653b56f9d9f9e21ebf5e9f9
treec13fed96838382b7498e989eda889dbea7cbf6f5
parentae1092b76bd9685c98fdee5e36d2c8b635864dd5
[PATCH] Add char_devs to st
This patch adds support for cdevs to the st driver. The changes are based on
Doug Gilbert's corresponding changes to the sg driver. Using cdevs brings the
following advantanges:
- support for many drives, currently the maximum is set to 128; the minor
  number assignment is explained in the patch to Documentation/scsi/README.st
- the tape devices appear in /sys/cdev/major/st*, as an example here are
  the entries for the first drive (4 modes, rewind and non-rewind
  devices):
  /sys/cdev/major/st0m0   /sys/cdev/major/st0m1   /sys/cdev/major/st0m2
  /sys/cdev/major/st0m3
  /sys/cdev/major/st0m0n  /sys/cdev/major/st0m1n  /sys/cdev/major/st0m2n
  /sys/cdev/major/st0m3n
Documentation/scsi/st.txt
drivers/scsi/st.c
drivers/scsi/st.h