From ef86170e9fc25a85231b0e6fd50ef72ee41f814c Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 27 Feb 2013 07:47:11 +0100 Subject: [PATCH] bugfix #340 : don't set cache=none to cdrom Cdrom devices don't works with cache=none and no reason to force cache mode on cdrom Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index a9ba77ce..970edb57 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1106,7 +1106,7 @@ sub print_drive_full { } } - $opts .= ",cache=none" if !$drive->{cache}; + $opts .= ",cache=none" if !$drive->{cache} && !drive_is_cdrom($drive); my $pathinfo = $path ? "file=$path," : '';