mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-19 22:05:23 +00:00
fix a warning: discard is not a number
This commit is contained in:
parent
2de2d6f74e
commit
6ecfbb4400
@ -4366,7 +4366,7 @@ sub vmconfig_update_disk {
|
||||
# update existing disk
|
||||
|
||||
# skip non hotpluggable value
|
||||
if (&$safe_num_ne($drive->{discard}, $old_drive->{discard}) ||
|
||||
if (&$safe_string_ne($drive->{discard}, $old_drive->{discard}) ||
|
||||
&$safe_string_ne($drive->{iothread}, $old_drive->{iothread}) ||
|
||||
&$safe_string_ne($drive->{queues}, $old_drive->{queues}) ||
|
||||
&$safe_string_ne($drive->{cache}, $old_drive->{cache})) {
|
||||
|
Loading…
Reference in New Issue
Block a user