mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qapi: Convert block_resize
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
d72f326431
commit
5e7caacb25
7 changed files with 38 additions and 18 deletions
10
hmp.c
10
hmp.c
|
@ -633,3 +633,13 @@ void hmp_balloon(Monitor *mon, const QDict *qdict)
|
|||
error_free(errp);
|
||||
}
|
||||
}
|
||||
|
||||
void hmp_block_resize(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
const char *device = qdict_get_str(qdict, "device");
|
||||
int64_t size = qdict_get_int(qdict, "size");
|
||||
Error *errp = NULL;
|
||||
|
||||
qmp_block_resize(device, size, &errp);
|
||||
hmp_handle_error(mon, &errp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue