diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-09-30 11:57:14 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-10-27 09:13:10 +0200 |
commit | 0d73f7253e4837603dbcbb7af0706d4d57124b5e (patch) | |
tree | 48656dc13c998dd3d3c4abf81b83307efd206758 /nbd | |
parent | 20f4aa265ec8442be66f00ee3986a92018b44b7b (diff) |
nbd: set name for all I/O channels created
Ensure that all I/O channels created for NBD are given names
to distinguish their respective roles.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nbd')
-rw-r--r-- | nbd/client.c | 1 | ||||
-rw-r--r-- | nbd/server.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nbd/client.c b/nbd/client.c index a92f1e2275..f6db8369b3 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -387,6 +387,7 @@ static QIOChannel *nbd_receive_starttls(QIOChannel *ioc, if (!tioc) { return NULL; } + qio_channel_set_name(QIO_CHANNEL(tioc), "nbd-client-tls"); data.loop = g_main_loop_new(g_main_context_default(), FALSE); TRACE("Starting TLS handshake"); qio_channel_tls_handshake(tioc, diff --git a/nbd/server.c b/nbd/server.c index 472f584c32..36bcafcd50 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -349,6 +349,7 @@ static QIOChannel *nbd_negotiate_handle_starttls(NBDClient *client, return NULL; } + qio_channel_set_name(QIO_CHANNEL(tioc), "nbd-server-tls"); TRACE("Starting TLS handshake"); data.loop = g_main_loop_new(g_main_context_default(), FALSE); qio_channel_tls_handshake(tioc, |