<span style=" font-size:10pt;font-family:sans-serif">The key is to pay
attention to the words, &quot;</span><span style=" font-size:10pt;font-family:Calibri">exceeds the maximum value that the </span><span style=" font-size:8pt;font-family:Calibri">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Calibri">field in
combination with other fields in the CDB is capable of specifying</span><span style=" font-size:10pt;font-family:sans-serif">&quot;.
This is not talking about what value is in the allocation length field,
but the maximum value that could be specified. If there is more data to
transfer than what can be specified, then return the CHECK CONDITION. e.g.,
allocation length field is 4 bytes. Information available to be transferred
is greater than 2^32 (4294967296), then Check Condition is returned.</span><br><span style=" font-size:10pt;font-family:sans-serif"><br>Kevin D. Butt<br>SCSI Architect, Tape Firmware, Data Retention Infrastructure<br>T10 Standards<br>MS 6TYA, 9000 S. Rita Rd., Tucson, AZ 85744<br>Tel: 520-799-5280<br>Fax: 520-799-2723 (T/L:321)<br>Email address: kdbutt@us.ibm.com<br><br>=========== Interesting Links ===========<br>[ IBM Tape Storage ] &nbsp;</span><a href="https://www.ibm.com/it-infrastructure/storage/tape"><span style=" font-size:10pt;font-family:sans-serif">https://www.ibm.com/it-infrastructure/storage/tape</span></a><span style=" font-size:10pt;font-family:sans-serif"><br>[ SSIC ] </span><a href="https://www-304.ibm.com/systems/support/storage/ssic/interoperability.wss"><span style=" font-size:10pt;font-family:sans-serif">https://www-304.ibm.com/systems/support/storage/ssic/interoperability.wss</span></a><span style=" font-size:10pt;font-family:sans-serif"><br>[ LTO &amp; 3592 ISV Support Matrix ] </span><a href="www.ibm.com/systems/resources/lto_isv_matrix.pdf"><span style=" font-size:10pt;font-family:sans-serif">www.ibm.com/systems/resources/lto_isv_matrix.pdf</span></a><span style=" font-size:10pt;font-family:sans-serif"><br>[ LTO SCSI Reference ] </span><a href="http://www-01.ibm.com/support/docview.wss?uid=ssg1S7003556"><span style=" font-size:10pt;font-family:sans-serif">http://www-01.ibm.com/support/docview.wss?uid=ssg1S7003556</span></a><span style=" font-size:10pt;font-family:sans-serif"><br>[ 3592 SCSI Reference ] </span><a href="http://www-01.ibm.com/support/docview.wss?uid=ssg1S7003248"><span style=" font-size:10pt;font-family:sans-serif">http://www-01.ibm.com/support/docview.wss?uid=ssg1S7003248</span></a><span style=" font-size:10pt;font-family:sans-serif"><br>===================================</span><br><br><br><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">From:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">&lt;t10@terabyteunlimited.com&gt;</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">To:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">&lt;t10@t10.org&gt;</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Date:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">02/27/2019
16:07</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Subject:
&nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">[T10]
SPC5r20a - 4.2.5.6 - Allocation length confusing.</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Sent
by: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style=" font-size:9pt;font-family:sans-serif">t10-bounces@t10.org</span><br><hr noshade><br><br><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">Hello,</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">If
you read the section in the 3<sup>rd</sup> paragraph it says to transfer
bytes until ALLOCATION LENGTH field has been transferred (so truncation
can occur and size needed report). &nbsp;Yet, the last paragraph says if
what you have to transfer is more bytes than ALLOCATION LENGTH then don&#8217;t
transfer anything and report an error. &nbsp; So which is it? &nbsp;REPORT
LUNS for example.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span></p><p style="margin-top:0px;margin-Bottom:240px"><span style=" font-size:10pt;font-family:Arial"><b>4.2.5.6
Allocation length</b></span></p><div><span style=" font-size:10pt;font-family:Arial">The </span><span style=" font-size:8pt;font-family:Arial">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Arial">field specifies
the maximum number of bytes or blocks that an application client has allocated
in the Data-In Buffer. The </span><span style=" font-size:8pt;font-family:Arial">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Arial">field specifies
bytes unless a different requirement is stated in the command definition.</span><p style="margin-top:0px;margin-Bottom:240px"><span style=" font-size:10pt;font-family:Arial">An
allocation length of zero specifies that no data shall be transferred.
This condition shall not be considered an error.</span></p><p style="margin-top:0px;margin-Bottom:240px"><span style=" font-size:10pt;font-family:Arial">The
device server shall terminate transfers to the Data-In Buffer when the
number of bytes or blocks specified by the </span><span style=" font-size:8pt;font-family:Arial">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Arial">field have
been transferred or when all available data have been transferred, whichever
is less. The allocation length is used to limit the maximum amount of variable
length data (e.g., mode data, log data, diagnostic data) returned to an
application client. If the information being transferred to the Data-In
Buffer includes fields containing counts of the number of bytes in some
or all of the data (e.g., a</span><span style=" font-size:8pt;font-family:Arial">PARAMETER
DATA LENGTH </span><span style=" font-size:10pt;font-family:Arial">field,
a </span><span style=" font-size:8pt;font-family:Arial">PAGE LENGTH </span><span style=" font-size:10pt;font-family:Arial">field,
a </span><span style=" font-size:8pt;font-family:Arial">DESCRIPTOR LENGTH
</span><span style=" font-size:10pt;font-family:Arial">field, an </span><span style=" font-size:8pt;font-family:Arial">AVAILABLE
DATA </span><span style=" font-size:10pt;font-family:Arial">field), then
the contents of these fields shall not be altered to reflect the truncation,
if any, that results from an insufficient </span><span style=" font-size:8pt;font-family:Arial">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Arial">value, unless
the standard that describes the Data-In Buffer format states otherwise.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">If
the amount of information that is available to be transferred exceeds the
maximum value that the </span><span style=" font-size:8pt;font-family:Calibri">ALLOCATION
LENGTH </span><span style=" font-size:10pt;font-family:Calibri">field in
combination with other fields in the CDB is capable of specifying, then
no data shall be transferred and the command shall be terminated with CHECK
CONDITION status, with the sense key set to ILLEGAL REQUEST, and the additional
sense code set to INVALID FIELD IN CDB.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">&nbsp;</span><tt><span style=" font-size:10pt">_______________________________________________<br>T10 mailing list<br>T10@t10.org<br></span></tt><a href="http://www.t10.org/mailman/listinfo/t10"><tt><span style=" font-size:10pt">http://www.t10.org/mailman/listinfo/t10</span></tt></a><tt><span style=" font-size:10pt"><br></span></tt></p><p style="margin-top:0px;margin-Bottom:0px"></p><p style="margin-top:0px;margin-Bottom:0px"></p></div><BR>