diff options
Diffstat (limited to 'nbd')
-rw-r--r-- | nbd/client.c | 4 | ||||
-rw-r--r-- | nbd/server.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nbd/client.c b/nbd/client.c index be5f08da46..5e47ac7792 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -315,8 +315,8 @@ int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint32_t *flags, goto fail; } if (!name) { - error_setg(errp, "Server requires an export name"); - goto fail; + TRACE("Using default NBD export name \"\""); + name = ""; } if (fixedNewStyle) { /* Check our desired export is present in the diff --git a/nbd/server.c b/nbd/server.c index 3d2fb1055f..9fee1d4fa4 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -220,6 +220,7 @@ static int nbd_negotiate_send_rep_list(QIOChannel *ioc, NBDExport *exp) uint64_t magic, name_len; uint32_t opt, type, len; + TRACE("Advertizing export name '%s'", exp->name ? exp->name : ""); name_len = strlen(exp->name); magic = cpu_to_be64(NBD_REP_MAGIC); if (nbd_negotiate_write(ioc, &magic, sizeof(magic)) != sizeof(magic)) { |