1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
systemd/rules/rules.d
David Zeuthen 2938220037 Run scsi_id and ata_id on the scsi_device object
In a multi-initiator setup, the HBA may very well export a SCSI device
for a device that another initiator has already logged into. But since
another initiator has already logged in, the kernel will not create a
block device.

Note that this is also the case for some RAID HBAs - for example, the
LSI 1068 series cards will export a SCSI device for a disk that is in
use by the HBAs RAID engine (no block device will be created here).

Running scsi_id and ata_id on the actual SCSI device means that we can
inquire the capabilities of the device. For example, we can check
whether ID_ATA_FEATURE_SET_SMART and ID_ATA_FEATURE_SET_SMART_ENABLED
is set and, if so, periodically poll the SMART status of the
disk. Even when other initiators has claimed the disk and if the disk
is in use by the RAID engine of the HBA.

Note that we run scsi_id and ata_id on /dev/bsg/* nodes - this is safe
to do because the scsi core guarantees that the bsg device has been
created before the actual add uevent for the scsi_device is emitted.

Since the block device is a direct child of the scsi_device we can
avoid running scsi_id and ata_id again by simply importing the
resulting ID_* properties from the parent.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-30 13:04:35 -04:00
..
50-udev-default.rules fix various syntax errors in rules 2010-09-21 12:14:50 +02:00
60-persistent-alsa.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
60-persistent-input.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
60-persistent-serial.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
60-persistent-storage-tape.rules 60-persistent-storage-tape.rules: make own by-path symlink for nst tapes 2010-07-08 11:37:48 +02:00
60-persistent-storage.rules Run scsi_id and ata_id on the scsi_device object 2010-10-30 13:04:35 -04:00
75-net-description.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
75-tty-description.rules replace "add|change" with "!remove" 2010-04-12 16:52:41 +02:00
78-sound-card.rules sound: include ALSA sound card id in ID_ID property 2009-11-05 04:32:41 +01:00
80-drivers.rules rules: add -v to modprobe calls to be able see what will be loaded 2010-05-27 18:52:09 +02:00
95-udev-late.rules send monitor events back to netlink socket 2009-03-29 04:24:39 +02:00