mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 14:07:39 +00:00
set cache=none if option is not defined
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
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";
|
||||
|
Loading…
Reference in New Issue
Block a user