aboutsummaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2019-11-13 20:46:35 -0600
committerEric Blake <eblake@redhat.com>2020-02-05 17:22:13 -0600
commitdeb6ccb077238660080abe7e667bbf8ede5141c7 (patch)
tree9251a3aee8863567541d966115cff6643758607c /monitor
parent7bd9d0a9e26c7a3c67c0f174f0009ba19969b158 (diff)
downloadqemu-deb6ccb077238660080abe7e667bbf8ede5141c7.zip
qemu-deb6ccb077238660080abe7e667bbf8ede5141c7.tar.gz
qemu-deb6ccb077238660080abe7e667bbf8ede5141c7.tar.bz2
nbd: Allow description when creating NBD blockdev
Allow blockdevs to match the feature already present in qemu-nbd -D. Enhance iotest 223 to cover it. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20191114024635.11363-5-eblake@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r--monitor/hmp-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
index d0e0af8..558fe06 100644
--- a/monitor/hmp-cmds.c
+++ b/monitor/hmp-cmds.c
@@ -2351,7 +2351,7 @@ void hmp_nbd_server_start(Monitor *mon, const QDict *qdict)
continue;
}
- qmp_nbd_server_add(info->value->device, false, NULL,
+ qmp_nbd_server_add(info->value->device, false, NULL, false, NULL,
true, writable, false, NULL, &local_err);
if (local_err != NULL) {
@@ -2373,7 +2373,7 @@ void hmp_nbd_server_add(Monitor *mon, const QDict *qdict)
bool writable = qdict_get_try_bool(qdict, "writable", false);
Error *local_err = NULL;
- qmp_nbd_server_add(device, !!name, name, true, writable,
+ qmp_nbd_server_add(device, !!name, name, false, NULL, true, writable,
false, NULL, &local_err);
hmp_handle_error(mon, local_err);
}