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:
committed by
Dietmar Maurer
parent
0ecf8463da
commit
11490cf228
@ -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";
|
||||
|
Reference in New Issue
Block a user