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 <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-02-27 07:47:11 +01:00 committed by Dietmar Maurer
parent eac6899d96
commit ef86170e9f

View File

@ -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," : '';