hmp_nbd_server_start: Don't ask for backing image data
'hmp_nbd_server_start' uses only the device name from the data returned from 'qmp_query_block', thus no backing file information. Use the new options to suppress asking for the unused parts to save on resources. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-ID: <df71ca72a96d870758695ac57772fcfb87dc8fa0.1770210044.git.pkrempa@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Peter Krempa committed
Feb 4, 2026 at 14:15 UTC
b2e9401cc9cec714b545bd1a5d56bc3ef4c4c6e2
1 file changed
+1
-1
block/monitor/block-hmp-cmds.c
+1
-1
@@ -422,7 +422,7 @@ void hmp_nbd_server_start(Monitor *mon, const QDict *qdict)
422
/* Then try adding all block devices. If one fails, close all and
423
* exit.
424
*/
425
- block_list = qmp_query_block(false, false, NULL);
425
+ block_list = qmp_query_block(true, true, NULL);
426
427
for (info = block_list; info; info = info->next) {
428
if (!info->value->inserted) {