[pve-devel] [PATCH qemu-server] detect_zeroes is a boolean
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri Jan 29 10:08:08 CET 2016
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a62ab04..14a18f0 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1338,7 +1338,7 @@ sub print_drive_full {
if (!drive_is_cdrom($drive)) {
my $detectzeroes;
- if ($drive->{detect_zeroes} && $drive->{detect_zeroes} eq 'off') {
+ if (defined($drive->{detect_zeroes}) && !$drive->{detect_zeroes}) {
$detectzeroes = 'off';
} elsif ($drive->{discard}) {
$detectzeroes = $drive->{discard} eq 'on' ? 'unmap' : 'on';
--
2.1.4
More information about the pve-devel
mailing list