5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-08-29 17:49:22 +03:00

set cache=none if option is not defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-22 14:35:51 +01:00
committed by Dietmar Maurer
parent 0ecf8463da
commit 11490cf228

View File

@ -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";