]>
Commit | Line | Data |
---|---|---|
a79082a0 DM |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
3 | # persistent storage links: /dev/tape/{by-id,by-path} | |
4 | ||
5 | ACTION=="remove", GOTO="persistent_storage_tape_end" | |
6 | ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="persistent_storage_tape_end" | |
7 | ||
8 | # also see: /lib/udev/rules.d/60-persistent-storage-tape.rules | |
9 | ||
10 | SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="1", IMPORT{program}="scsi_id --sg-version=3 --export --whitelisted -d $devnode", \ | |
11 | SYMLINK+="tape/by-id/scsi-$env{ID_SERIAL}-sg" | |
12 | ||
13 | # iSCSI devices from the same host have all the same ID_SERIAL, | |
14 | # but additionally a property named ID_SCSI_SERIAL. | |
15 | SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="1", ENV{ID_SCSI_SERIAL}=="?*", \ | |
16 | SYMLINK+="tape/by-id/scsi-$env{ID_SCSI_SERIAL}-sg" | |
17 | ||
18 | LABEL="persistent_storage_tape_end" |