- Update to new upstream release 1.41 * sg_zone: new utility for open, close and finish zone commands introduced in zbc-r02 * sg_rep_zones and sg_reset_wp: change opcodes as indicated in zbc-r02 * sg_read_buffer: add READ BUFFER(16) support (spc5r02) * sg_logs: add --enumerate and acronyms * allow decode from hex or binary in file * decode environmental reporting + limits lpages * sg_write_buffer: add --timeout=TO option * sg_lib interface: add sg_lib_pdt_decay(), TPROTO_PCIE plus support for zoning service actions * sg_lib: in Linux blocked devices yield ENXIO from ioctl(SG_IO), map to SG_LIB_CAT_NOT_READY * clean up sg_warnings_stream handling * sg_inq+sg_vpd: fix SCSI name string decoding in device identification VPD page (0x83) * increase sanity on Unit Serial number VPD page * improve rdac vpd page reporting (vendor) * sg_inq: improve NAA handling in dev_id VPD page * update version descriptor list to 20150126 OBS-URL: https://build.opensuse.org/request/show/315568 OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=51
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
---
|
|
scripts/55-scsi-sg3_id.rules | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
--- a/scripts/55-scsi-sg3_id.rules
|
|
+++ b/scripts/55-scsi-sg3_id.rules
|
|
@@ -15,10 +15,19 @@ ENV{SCSI_MODEL}=="?*", ENV{ID_MODEL}="$e
|
|
ENV{SCSI_MODEL_ENC}=="?*", ENV{ID_MODEL_ENC}="$env{SCSI_MODEL_ENC}"
|
|
ENV{SCSI_REVISION}=="?*", ENV{ID_REVISION}="$env{SCSI_REVISION}"
|
|
ENV{SCSI_TYPE}=="?*", ENV{ID_TYPE}="$env{SCSI_TYPE}"
|
|
+
|
|
+# don't inquire sn and di on broken devices (https://bugzilla.suse.com/show_bug.cgi?id=840054)
|
|
+# unkown device
|
|
+ATTRS{idVendor}=="0aec", ATTRS{idProduct}=="3260", ENV{SG3_UTILS_DEVICE_IGNORE_SN_DI}="1"
|
|
+# Sony/JMicron port replicator
|
|
+ATTRS{idVendor}=="054c", ATTRS{idProduct}=="06a0", ENV{SG3_UTILS_DEVICE_IGNORE_SN_DI}="1"
|
|
+
|
|
+ENV{SG3_UTILS_DEVICE_IGNORE_SN_DI}=="1", GOTO="sg3_utils_sg_inq_sn_di_end"
|
|
# SCSI EVPD page 0x80 values
|
|
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SCSI}=="1", IMPORT{program}="/usr/bin/sg_inq --export --page=sn $tempnode"
|
|
# SCSI EVPD page 0x83 values
|
|
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SCSI}=="1", IMPORT{program}="/usr/bin/sg_inq --export --page=di $tempnode"
|
|
+LABEL="sg3_utils_sg_inq_sn_di_end"
|
|
|
|
# ID_WWN compat mapping
|
|
ENV{SCSI_IDENT_LUN_NAA_REGEXT}=="?*", ENV{ID_WWN}!="?*", ENV{ID_WWN}="0x$env{SCSI_IDENT_LUN_NAA_REGEXT}"
|