<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Aug 6, 2018 at 5:46 PM Eric Blake <<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08/06/2018 09:31 AM, Nir Soffer wrote:<br>
> Eric, can you point us to the part of the spec allowing ignoring the export<br>
> name sent by the client?<br>
<br>
Nothing in the NBD spec requires the server to reject unknown export <br>
names. So nbdkit never rejects export names (which means it behaves as <br>
if all names work, regardless of whether or not it was the name it was <br>
configured with, since it exports exactly one volume all the time).<br></blockquote><div><br></div><div>The spec mention this about NBD_OPT_EXPORT_NAME:</div><div><br></div>   If the chosen export does not exist or requirements for the chosen export are not met</div><div class="gmail_quote">    (e.g., the client did not initiate TLS for an export where the server requires it), the</div><div class="gmail_quote">    server MUST terminate the session.</div><div class="gmail_quote"><br></div><div class="gmail_quote">and for NBD_OPT_GO, we have NBD_REP_ERR_UNKNOWN:</div><div class="gmail_quote"><br></div><div class="gmail_quote">    The chosen export does not exist on this server. In this case, the server SHOULD NOT</div><div class="gmail_quote">    send NBD_REP_INFO replies.</div><div class="gmail_quote"><div><br></div><div>And the spec also says:</div><div><br></div>    If the server is unwilling to allow the export, it MUST terminate the session</div><div class="gmail_quote"><br></div><div class="gmail_quote">Why would a server want to allow an export using different name? What is the point</div><div class="gmail_quote">of the export name in this case?</div><div class="gmail_quote"><br></div><div class="gmail_quote">Again, if export name is not useful when a server export only one export, both server and</div><div class="gmail_quote">client can use the default empty export name.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Nir</div></div>