[pve-devel] [PATCH 2/3] QemuServer::clone_disk: allow path as src
Alexandre Derumier
aderumier at odiso.com
Fri Jan 20 01:21:42 CET 2017
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4ccf10a..054394b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6144,7 +6144,8 @@ sub clone_disk {
push @$newvollist, $newvolid;
} else {
- my ($storeid, $volname) = PVE::Storage::parse_volume_id($drive->{file});
+ my ($storeid, $volname) = PVE::Storage::parse_volume_id($drive->{file}, 1);
+ $volname = $drive->{file} if !$storeid;
$storeid = $storage if $storage;
my ($defFormat, $validFormats) = PVE::Storage::storage_default_format($storecfg, $storeid);
--
2.1.4
More information about the pve-devel
mailing list