1 # do not edit this file, it will be overwritten on update
3 # persistent storage links: /dev/tape/{by-id,by-path}
5 ACTION=="remove", GOTO="persistent_storage_tape_end"
6 ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}=="1", GOTO="persistent_storage_tape_end"
8 # also see: /lib/udev/rules.d/60-persistent-storage-tape.rules
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"
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"
18 LABEL="persistent_storage_tape_end"