update scsicodes, and fix a few bugs Reference: /n/atom/patch/applied/scsicodes201509 Date: Mon Sep 28 03:53:30 CES 2015 Signed-off-by: quanstro@quanstro.net --- /sys/lib/scsicodes Mon Sep 28 03:53:09 2015 +++ /sys/lib/scsicodes Mon Sep 28 03:53:10 2015 @@ -2,8 +2,9 @@ { sed '/^0/q' scsicodes hget http://www.t10.org/lists/asc-num.htm | - grep '^[0-9]' |tr -d ' ' |tr A-Z a-z | - sed 's/(..)\/(..) .............. (.*)/\1\2 \3/' + rune/case| + sed -n 's: ::g + s:^([0-9a-f][0-9a-f])/([0-9a-fn][0-9a-fn]) ............. (.*):\1\2 \3:p' } > nscsicodes && mv nscsicodes scsicodes exit 0000 no additional sense information @@ -31,6 +32,7 @@ 001e conflicting sa creation request 001f logical unit transitioning to another power condition 0020 extended copy information available +0021 atomic command aborted due to aca 0100 no index/sector signal 0200 no seek complete 0300 peripheral device write fault @@ -50,6 +52,7 @@ 040b logical unit not accessible, target port in standby state 040c logical unit not accessible, target port in unavailable state 040d logical unit not ready, structure check required +040e logical unit not ready, security session in progress 0410 logical unit not ready, auxiliary memory not accessible 0411 logical unit not ready, notify (enable spinup) required 0412 logical unit not ready, offline @@ -65,6 +68,10 @@ 041c logical unit not ready, additional power use not yet granted 041d logical unit not ready, configuration in progress 041e logical unit not ready, microcode activation required +041f logical unit not ready, microcode download required +0420 logical unit not ready, logical unit reset required +0421 logical unit not ready, hard reset required +0422 logical unit not ready, power cycle required 0500 logical unit does not respond to selection 0600 no reference position found 0700 multiple peripheral devices selected @@ -78,6 +85,7 @@ 0902 focus servo failure 0903 spindle servo failure 0904 head select fault +0905 vibration induced tracking error 0a00 error log overflow 0b00 warning 0b01 warning - specified temperature exceeded @@ -89,6 +97,14 @@ 0b07 warning - degraded power to non-volatile cache 0b08 warning - power loss expected 0b09 warning - device statistics notification active +0b0a warning - high critical temperature limit exceeded +0b0b warning - low critical temperature limit exceeded +0b0c warning - high operating temperature limit exceeded +0b0d warning - low operating temperature limit exceeded +0b0e warning - high critical humidity limit exceeded +0b0f warning - low critical humidity limit exceeded +0b10 warning - high operating humidity limit exceeded +0b11 warning - low operating humidity limit exceeded 0c00 write error 0c01 write error - recovered with auto reallocation 0c02 write error - auto reallocation failed @@ -105,6 +121,9 @@ 0c0d write error - not enough unsolicited data 0c0e multiple write errors 0c0f defects in error window +0c10 incomplete multiple atomic write operations +0c11 write error - recovery scan needed +0c12 write error - insufficient zone resources 0d00 error detected by third party temporary initiator 0d01 third party device failure 0d02 copy target device not reachable @@ -115,7 +134,6 @@ 0e01 information unit too short 0e02 information unit too long 0e03 invalid field in command information unit -0f/00 1000 id crc or ecc error 1001 logical block guard check failed 1002 logical block application tag check failed @@ -211,6 +229,10 @@ 2101 invalid element address 2102 invalid address for write 2103 invalid write crossing layer jump +2104 unaligned write command +2105 write boundary violation +2106 attempt to read invalid data +2107 read boundary violation 2200 illegal function (use 20 00, 24 00, or 26 00) 2300 invalid token operation, cause not reportable 2301 invalid token operation, unsupported token type @@ -252,6 +274,7 @@ 2610 data decryption key fail limit reached 2611 incomplete key-associated data set 2612 vendor specific key reference not found +2613 application tag mode page is invalid 2700 write protected 2701 hardware write protected 2702 logical unit software write protected @@ -260,6 +283,7 @@ 2705 permanent write protect 2706 conditional write protect 2707 space allocation failed write protect +2708 zone is read only 2800 not ready to ready change, medium may have changed 2801 import or export element accessed 2802 format-layer may have changed @@ -292,6 +316,7 @@ 2a13 data encryption key instance counter has changed 2a14 sa creation capabilities data has changed 2a15 medium removal prevention preempted +2a16 zone reset write pointer required 2b00 copy cannot execute since host cannot disconnect 2c00 command sequence error 2c01 too many windows specified @@ -306,6 +331,10 @@ 2c0a partition or collection contains user objects 2c0b not reserved 2c0c orwrite generation does not match +2c0d reset write pointer not allowed +2c0e zone is offline +2c0f stream not open +2c10 unwritten data in zone 2d00 overwrite error on update in place 2e00 insufficient time for operation 2e01 command timeout before processing @@ -387,7 +416,6 @@ 3b1a data transfer device removed 3b1b data transfer device inserted 3b1c too many logical objects on partition to support operation -3c/00 3d00 invalid bits in identify message 3e00 logical unit has not self-configured yet 3e01 logical unit failure @@ -416,6 +444,8 @@ 3f13 iscsi ip address removed 3f14 iscsi ip address changed 3f15 inspect referrals sense descriptors +3f16 microcode has been changed without reset +3f17 zone transition to full 4000 ram failure (should use 40 nn) 40nn diagnostic failure on component nn (80h-ffh) 4100 data path failure (should use 40 nn) @@ -462,7 +492,6 @@ 4c00 logical unit failed self-configuration 4dnn tagged overlapped commands (nn = task tag) 4e00 overlapped commands attempted -4f/00 5000 write append error 5001 write append position error 5002 position error related to timing @@ -498,7 +527,9 @@ 550b insufficient power for operation 550c insufficient resources to create rod 550d insufficient resources to create rod token -56/00 +550e insufficient zone resources +550f insufficient zone resources to complete write +5510 maximum number of streams open 5700 unable to recover table-of-contents 5800 generation does not exist 5900 updated block read @@ -612,7 +643,6 @@ 5e43 power state change to standby 5e45 power state change to sleep 5e47 power state change to device control -5f/00 6000 lamp failure 6100 video acquisition error 6101 unable to acquire video @@ -659,6 +689,9 @@ 6f05 drive region must be permanent/region reset count error 6f06 insufficient block count for binding nonce recording 6f07 conflict in binding nonce recording +6f08 insufficient permission +6f09 invalid drive-host pairing server +6f0a drive-host pairing suspended 70nn decompression exception short algorithm id of nn 7100 decompression exception long algorithm id 7200 session fixation error @@ -707,14 +740,3 @@ 746f external data encryption control error 7471 logical unit access not authorized 7479 security conflict in translated device -75/00 -76/00 -77/00 -78/00 -79/00 -7a/00 -7b/00 -7c/00 -7d/00 -7e/00 -7f/00