qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: Eric Blake <eblake@redhat.com>,
	qemu-block@nongnu.org, qemu-devel@nongnu.org
Cc: den@openvz.org
Subject: Re: [Qemu-devel] [PATCH 1/2] nbd/server: fix nbd_negotiate_handle_info
Date: Fri, 3 Nov 2017 08:41:46 +0300	[thread overview]
Message-ID: <cf2b2dee-419b-ec7b-12e7-342e694b1893@virtuozzo.com> (raw)
In-Reply-To: <9b3661dd-0ace-9040-e8ae-1983b3f63e3d@redhat.com>

02.11.2017 20:54, Eric Blake wrote:
> On 11/01/2017 10:42 AM, Vladimir Sementsov-Ogievskiy wrote:
>
> It's best to send a 0/2 cover letter for a series, even when both
> patches are small, as that helps automation tools.

ok.

>
>> namelen should be here, lenght is unrelated.
> s/lenght/length/

my eternal problem...

>
> Broken in introduction in commit f37708f6; hence adding qemu-stable in cc.
>
>> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>> ---
>>   nbd/server.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
>> diff --git a/nbd/server.c b/nbd/server.c
>> index 70b40ed27e..7fcec0af7e 100644
>> --- a/nbd/server.c
>> +++ b/nbd/server.c
>> @@ -433,7 +433,7 @@ static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length,
>>   
>>       /* Don't bother sending NBD_INFO_NAME unless client requested it */
>>       if (sendname) {
>> -        rc = nbd_negotiate_send_info(client, opt, NBD_INFO_NAME, length, name,
>> +        rc = nbd_negotiate_send_info(client, opt, NBD_INFO_NAME, namelen, name,
> Interestingly enough, length == 0 at this point, so we would always
> report that the export name is '' (aka the default export), without
> actually being a protocol violation.  Doesn't hurt qemu as a client,
> since we don't ask for NBD_INFO_NAME, but may break other NBD client
> implementations, if they then use NBD_OPT_GO on the '' name expecting it
> to resolve to the same non-empty name they just queried on NBD_OPT_INFO.
>


-- 
Best regards,
Vladimir

      reply	other threads:[~2017-11-03  5:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 15:42 [Qemu-devel] [PATCH 1/2] nbd/server: fix nbd_negotiate_handle_info Vladimir Sementsov-Ogievskiy
2017-11-01 15:42 ` [Qemu-devel] [PATCH 2/2] nbd/server: add assert to nbd_negotiate_handle_info Vladimir Sementsov-Ogievskiy
2017-11-02 18:06   ` Eric Blake
2017-11-03  5:50     ` Vladimir Sementsov-Ogievskiy
2017-11-02 17:54 ` [Qemu-devel] [PATCH 1/2] nbd/server: fix nbd_negotiate_handle_info Eric Blake
2017-11-03  5:41   ` Vladimir Sementsov-Ogievskiy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf2b2dee-419b-ec7b-12e7-342e694b1893@virtuozzo.com \
    --to=vsementsov@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=eblake@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).