5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

convert block_io_throttle monitor command to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2012-06-25 10:02:51 +02:00 committed by Dietmar Maurer
parent 2d23ddc5db
commit 6f1dbbea52

View File

@ -2593,7 +2593,7 @@ sub qemu_block_set_io_throttle {
$iops_rd = 0 if !$iops_rd;
$iops_wr = 0 if !$iops_wr;
my $ret = vm_monitor_command($vmid, "block_set_io_throttle $deviceid $bps $bps_rd $bps_wr $iops $iops_rd $iops_wr");
my $ret = vm_mon_cmd($vmid, "block_set_io_throttle", device => $deviceid, bps => $bps, bps_rd => $bps_rd, bps_wr => $bps_wr, iops => $iops, iops_rd => $iops_rd, iops_wr => $iops_wr);
$ret =~ s/^\s+//;
return 1 if $ret eq "";
syslog("err", "error setting block_set_io_throttle: $ret");