aboutsummaryrefslogtreecommitdiff
path: root/nbd/client.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2018-03-30 08:09:50 -0500
committerEric Blake <eblake@redhat.com>2018-04-02 09:10:49 -0500
commit2b53af2523f6a3387f71372f59d3717f1f7d5fd9 (patch)
tree32cd778d01afae8347a074f765f429b970ed648b /nbd/client.c
parent260e34dbb7646b23d6f93bb5f2b208acf60f1088 (diff)
downloadqemu-2b53af2523f6a3387f71372f59d3717f1f7d5fd9.zip
qemu-2b53af2523f6a3387f71372f59d3717f1f7d5fd9.tar.gz
qemu-2b53af2523f6a3387f71372f59d3717f1f7d5fd9.tar.bz2
nbd: trace meta context negotiation
Having a more detailed log of the interaction between client and server is invaluable in debugging how meta context negotiation actually works. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20180330130950.1931229-1-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'nbd/client.c')
-rw-r--r--nbd/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbd/client.c b/nbd/client.c
index dd0174b..b9e175d 100644
--- a/nbd/client.c
+++ b/nbd/client.c
@@ -623,6 +623,7 @@ static int nbd_negotiate_simple_meta_context(QIOChannel *ioc,
char *data = g_malloc(data_len);
char *p = data;
+ trace_nbd_opt_meta_request(context, export);
stl_be_p(p, export_len);
memcpy(p += sizeof(export_len), export, export_len);
stl_be_p(p += export_len, 1);
@@ -680,6 +681,7 @@ static int nbd_negotiate_simple_meta_context(QIOChannel *ioc,
}
g_free(name);
+ trace_nbd_opt_meta_reply(context, received_id);
received = true;
/* receive NBD_REP_ACK */