[pve-devel] [PATCH qemu-server 1/2] fix a warning: discard is not a number
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Nov 3 08:17:14 CET 2016
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 7cb5ffc..245947d 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -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})) {
--
2.1.4
More information about the pve-devel
mailing list