mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
7bd9d0a9e2
commit
deb6ccb077
5 changed files with 21 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue