nbd/server: nbd_negotiate: return 1 on NBD_OPT_ABORT
commit1e120ffead85d08d41160065e0d8cf86400b1c9e
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 7 Jul 2017 15:29:09 +0000 (7 18:29 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 10 Jul 2017 14:57:24 +0000 (10 09:57 -0500)
treefe44c8769b0005c8c3ea3a14ca90ea56dd4a5d2c
parent99c62e70aaa9a3ad843ab1a58129104f83f366db
nbd/server: nbd_negotiate: return 1 on NBD_OPT_ABORT

Separate the case when a client sends NBD_OPT_ABORT from all other
errors. It will be needed for the following patch, where errors will be
reported.
This particular case is not actually an error - it honestly follows the
NBD protocol. Therefore it should not be reported like an error.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170707152918.23086-2-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
nbd/server.c