[pve-devel] [PATCH] sheepdog : volume_resize return if running

Alexandre Derumier aderumier at odiso.com
Sun Jan 8 14:04:41 CET 2017


fix : https://forum.proxmox.com/threads/sheepdog-disk-resize-not-working.31760/

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/SheepdogPlugin.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index ac1eca5..d9542a8 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -379,6 +379,8 @@ sub volume_size_info {
 sub volume_resize {
     my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
 
+    return 1 if $running;
+
     my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
 	$class->parse_volname($volname);
 
-- 
2.1.4



More information about the pve-devel mailing list