diff options
author | Eric Blake <eblake@redhat.com> | 2018-03-30 08:09:50 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2018-04-02 09:10:49 -0500 |
commit | 2b53af2523f6a3387f71372f59d3717f1f7d5fd9 (patch) | |
tree | 32cd778d01afae8347a074f765f429b970ed648b /nbd/client.c | |
parent | 260e34dbb7646b23d6f93bb5f2b208acf60f1088 (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nbd/client.c b/nbd/client.c index dd0174b036..b9e175d1c2 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 */ |