[pve-devel] [PATCH qemu-server] fix disk throttling syntax

Dominik Csapak d.csapak at proxmox.com
Fri Jul 14 14:36:16 CEST 2017


the syntax was wrong, it was (e.g. for iops-write):

throttling.iops-write=-max100
instead of
throttling.iops-write-max=100

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/QemuServer.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 79a65ee..98cd762 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1613,10 +1613,10 @@ sub print_drive_full {
 	    $opts .= ",throttling.iops$qmpname=$v";
 	}
 	if (my $v = $drive->{"iops${dir}_max"}) {
-	    $opts .= ",throttling.iops$qmpname=-max$v";
+	    $opts .= ",throttling.iops$qmpname-max=$v";
 	}
 	if (my $v = $drive->{"iops${dir}_max_length"}) {
-	    $opts .= ",throttling.iops$qmpname=-max-length$v";
+	    $opts .= ",throttling.iops$qmpname-max-length=$v";
 	}
     }
 
-- 
2.11.0





More information about the pve-devel mailing list