diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-14 16:49:14 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-01-18 10:23:39 -0200 |
commit | 80047da59b17053b69e8bdc143c8fb4b3a44cb7d (patch) | |
tree | 306833f8a865b3edfc3e85a462cda8e8fa01269b /hmp.c | |
parent | 333a96ec9fd08eaa03f8de1acc41a2851ccb8096 (diff) |
qapi: Convert block_set_io_throttle
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -769,3 +769,17 @@ void hmp_change(Monitor *mon, const QDict *qdict) } hmp_handle_error(mon, &err); } + +void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict) +{ + Error *err = NULL; + + qmp_block_set_io_throttle(qdict_get_str(qdict, "device"), + qdict_get_int(qdict, "bps"), + qdict_get_int(qdict, "bps_rd"), + qdict_get_int(qdict, "bps_wr"), + qdict_get_int(qdict, "iops"), + qdict_get_int(qdict, "iops_rd"), + qdict_get_int(qdict, "iops_wr"), &err); + hmp_handle_error(mon, &err); +} |