[7875] in linux-scsi channel archive
scsidev-2.0
daemon@ATHENA.MIT.EDU (Kurt Garloff)
Fri Jan 21 17:24:31 2000
Date: Thu, 20 Jan 2000 23:22:00 +0100
From: Kurt Garloff <garloff@suse.de>
To: "Linux SCSI list" <linux-scsi@vger.rutgers.edu>
Message-ID: <20000120232200.D21317@mobil.tue.nl>
Mail-Followup-To: "Linux SCSI list" <linux-scsi@vger.rutgers.edu>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
protocol="application/pgp-signature"; boundary="VV4b6MQE+OnNyhkM"
--VV4b6MQE+OnNyhkM
Content-Type: text/plain; charset=us-ascii
Hi,
I spent some time reworking Eric Youngdale's scsidev program, which assigns
names based on its physical properties, like host, channel, scsi id and lun
to a scsi device. It also inquires the devices and optionally sets up aliases
based on the outcome of this, so you can assign an alias to a device by
specifying the manufacturer name and the serial number, if you wish.
(That way, you can even change it's ID, without breaking your /etc/fstab.)
Some bugfixes have been done, resulting in scsidev-1.6.
Some major changes have been done done on the scanning process, resulting in
faster operation and having removable devices and more than 16 SCSI disks
being supported.
The result is scsidev-2.0.
http://www.garloff.de/kurt/linux/scsidev/
There is one bug, BTW, which I found by thinking about it: The scsidev-2.0
assumes that the disks have the same order than the scsi generic devices.
This is always true after booting, but you might fool scsidev by removing a
tape and inserting a disk (with a low SCSI ID). So the disk gets the sg
number of your tape, which might be lower than the next disk, but a disk
number which is higher.
I will add sanity checks to detect and handle such a situation.
(Can only be handled, if the (block) device is accessible and will fail for
removable media in absence of a medium, sigh!)
Wait for scsidev-2.1, in case you have situations like described here ...
Enjoy!
--
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
--VV4b6MQE+OnNyhkM
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4h4qIxmLh6hyYd04RAdQQAKCjlKFOyRJ2yI2LQuqJ3IHiSCBnLgCgoygg
ms88tcbhGhVI52gDkjWUHCE=
=aGIh
-----END PGP SIGNATURE-----
--VV4b6MQE+OnNyhkM--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu