[pve-devel] [PATCH] set cache=none if option is not defined

Alexandre Derumier aderumier at odiso.com
Fri Feb 22 14:35:51 CET 2013


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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 6bab016..ef9f49a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1106,6 +1106,8 @@ sub print_drive_full {
 	}
     }
 
+    $opts .= ",cache=none" if !$drive->{cache};
+
     my $pathinfo = $path ? "file=$path," : '';
 
     return "${pathinfo}if=none,id=drive-$drive->{interface}$drive->{index}$opts";
-- 
1.7.10.4




More information about the pve-devel mailing list