qemu/nbd
Eric Blake 2178a569be nbd/server: Fix blockstatus trace
Don't increment remaining_bytes until we know that we will actually be
including the current block status extent in the reply; otherwise, the
value traced will include a bytes value that is oversized by the
length of the next block status extent which did not get sent because
it instead ended the loop.

Fixes: fb7afc79
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190403030526.12258-2-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
2019-04-08 13:36:04 -05:00
..
client.c nbd/client: Reject inaccessible tail of inconsistent server 2019-04-01 08:31:16 -05:00
common.c nbd: generalize usage of nbd_read 2019-02-04 15:11:27 -06:00
Makefile.objs
nbd-internal.h nbd: Move nbd_read_eof() to nbd/client.c 2019-02-25 15:03:19 +01:00
server.c nbd/server: Fix blockstatus trace 2019-04-08 13:36:04 -05:00
trace-events trace-events: Delete unused trace points 2019-03-22 16:18:07 +00:00