[pve-devel] [PATCH qemu-server] Improve error message when trying to shrink a volume, fix typo

Emmanuel Kasper e.kasper at proxmox.com
Thu Feb 16 10:39:35 CET 2017


---
 PVE/API2/Qemu.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index a41e74f..a077ed7 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -3049,7 +3049,7 @@ __PACKAGE__->register_method({
 	    $newsize += $size if $ext;
 	    $newsize = int($newsize);
 
-	    die "unable to skrink disk size\n" if $newsize < $size;
+	    die "shrinking disks is not supported\n" if $newsize < $size;
 
 	    return if $size == $newsize;
 
-- 
2.1.4





More information about the pve-devel mailing list