File: 00-scsi-sg3_config.rules

package info (click to toggle)
sg3-utils 1.48-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,212 kB
  • sloc: ansic: 123,509; cpp: 14,381; sh: 7,956; makefile: 702
file content (23 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Configuration for SCSI device identification

# To apply changes, copy this file to /etc/udev/rules.d and edit to suit your needs.
# DO NOT EDIT THIS FILE IN PLACE!

ACTION!="add|change", GOTO="scsi_identify_end"
SUBSYSTEMS=="scsi", GOTO="scsi_identify"
GOTO="scsi_identify_end"
LABEL="scsi_identify"

# Set ID_SCSI_INQUIRY to 0 to force running "sg_inq" for obtaining device IDs
# from SCSI VPDs, rather than looking them up in sysfs (not recommended).
ENV{ID_SCSI_INQUIRY}=""

# Set enabled unreliable sources for setting the ID_SERIAL property.
# See 55-scsi-sg3_id.rules for detailed documentation.
ENV{.SCSI_ID_SERIAL_SRC}="T"

# Set enabled unreliable sources for creating additional /dev/disk/by-id/scsi* symlinks.
# See 58-scsi-sg3_symlink.rules for detailed documentation.
ENV{.SCSI_SYMLINK_SRC}=""

LABEL="scsi_identify_end"