[pve-devel] [PATCH 07/14] convert block_io_throttle monitor command to qmp
Alexandre Derumier
aderumier at odiso.com
Mon Jun 25 10:02:51 CEST 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 316416b..0f4ba1a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -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");
--
1.7.2.5
More information about the pve-devel
mailing list