[pve-devel] [PATCH 02/11] change print_drive sub to new device syntax

Derumier Alexandre aderumier at odiso.com
Wed Sep 7 15:34:37 CEST 2011


Signed-off-by: Derumier Alexandre <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 4ca6e48..1d11e6f 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -868,7 +868,7 @@ sub print_drive_full {
 
     my $pathinfo = $path ? "file=$path," : '';
 
-    return "${pathinfo}if=$drive->{interface},index=$drive->{index}$opts";
+    return "${pathinfo}if=none,id=drive-$drive->{interface}$drive->{index}$opts";
 }
 
 
-- 
1.7.2.5




More information about the pve-devel mailing list