<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:ArialMT;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:619653267;
        mso-list-type:hybrid;
        mso-list-template-ids:-1872986146 67698711 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">All,<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">What I see in SBC4r10 is a bit more problematic:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">A write same non-zero (</span><span style="font-size:8.0pt;font-family:&quot;ArialMT&quot;,serif">WSNZ</span><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">)
 bit set to one indicates that the device server does not support a value of zero in the
</span><span style="font-size:8.0pt;font-family:&quot;ArialMT&quot;,serif">NUMBER OF LOGICAL BLOCKS
</span><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">field in the WRITE SAME command CDBs.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">A
</span><span style="font-size:8.0pt;font-family:&quot;ArialMT&quot;,serif">WSNZ </span><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">bit set to zero indicates that the device server may or may not support a value of zero in the
</span><span style="font-size:8.0pt;font-family:&quot;ArialMT&quot;,serif">NUMBER OF LOGICAL BLOCKS
</span><span style="font-size:10.0pt;font-family:&quot;ArialMT&quot;,serif">field of the WRITE SAME commands.</span><o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">A <span style="font-variant:small-caps">wsnz</span> bit value of one with a
<span style="font-variant:small-caps">number of logical blocks</span> field value of zero does promise failure, but there seems to be no definitive result with a
<span style="font-variant:small-caps">wsnz</span> bit value of zero. <o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">One solution approach would be to clarify the standard to:
<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">a)<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>allow both reported rejection and attempted processing if the host specifies &nbsp;a
<span style="font-variant:small-caps">number of logical blocks</span> field value of zero when the
<span style="font-variant:small-caps">wsnz</span> bit value is zero; and <o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">b)<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>allow both reported rejection and attempted processing if the host specifies &nbsp;a
<span style="font-variant:small-caps">number of logical blocks</span> field value of zero when the
<span style="font-variant:small-caps">wsnz</span> bit value is zero and the actual affected block count would exceed the value of the
<span style="font-variant:small-caps">maximum write same length</span> field.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Thank you,<o:p></o:p></p>
<p class="MsoPlainText">John Geldman<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="http://www.micron.com/"><span style="color:#1F497D;text-decoration:none"><img border="0" width="168" height="45" id="Picture_x0020_1" src="cid:image001.png@01D1B096.C4B31A30" alt="cid:image001.png@01D123AF.225CEFA0"></span></a><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray;text-transform:uppercase">John Geldman</span></b><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray"><br>
Director, Industry Standards, <br>
<br>
Micron Technology, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray">Office</span></b><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray">&nbsp;&#43;1 (408) 822-0348 &nbsp;<b>Mobile</b>&nbsp;&#43;1 (510) 449-3597<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray"><br>
</span><span style="color:#1F497D"><a href="mailto:jgeldman@micron.com" title="Email"><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray">jgeldman@micron.com</span></a></span><span style="font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;color:gray">&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: t10-bounces@t10.org [mailto:t10-bounces@t10.org] On Behalf Of Sitsofe Wheeler<br>
Sent: Tuesday, May 17, 2016 10:37 PM<br>
To: t10@t10.org<br>
Subject: [T10] WRITE SAME and 0 LBA counts</p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">According to SBC specs if the target's WSNZ bit is 0 and the WRITES SAME's NUMBER OF LOGICAL BLOCKS is set to 0 then the LBA from the LOGICAL BLOCK ADDRESS field to the last logical block on the medium should be written. However, it
 also says if the number of logical blocks specified to be written exceeds the MAXIMUM WRITE SAME LENGTH a CHECK CONDITION/ILLEGAL REQUEST/INVALID FIELD IN CDB should be raised.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">When the spec says &quot;number of logical blocks specified to be [...] written&quot; is this only in reference to the NUMBER OF LOGICAL BLOCKS passed in rather than the computed number of blocks to be written or is there a choice over which is
 used (i.e. the target can pick whether it errors or not if the computed blocks exceed the MAXIMUM WRITE SAME LENGTH)?<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">For example, if I have an *SBC-3* 1GByte target with a WSNZ of 0 and a MAXIMUM WRITE SAME LENGTH of 131072 blocks (64Mbytes with a sector size of 512), then I issue a WRITE SAME with NUMBER OF LOGICAL BLOCKS of 0 and a LOGICAL BLOCK
 ADDRESS of 0 is it legal for the SBC-3 target to produce an error because the computed number of blocks to be written will be greater than 131072?<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">--<o:p></o:p></p>
<p class="MsoPlainText">Sitsofe | <a href="http://sucs.org/~sits/"><span style="color:windowtext;text-decoration:none">http://sucs.org/~sits/</span></a><o:p></o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">T10 mailing list<o:p></o:p></p>
<p class="MsoPlainText"><a href="mailto:T10@t10.org"><span style="color:windowtext;text-decoration:none">T10@t10.org</span></a><o:p></o:p></p>
<p class="MsoPlainText"><a href="http://www.t10.org/mailman/listinfo/t10"><span style="color:windowtext;text-decoration:none">http://www.t10.org/mailman/listinfo/t10</span></a><o:p></o:p></p>
</div>
</body>
</html>