[pve-devel] [PATCH qemu-server 2/9] SMBIOS: followup: allow now 512 characters for full format string

Oguz Bektas o.bektas at proxmox.com
Fri Nov 15 14:58:56 CET 2019


From: Thomas Lamprecht <t.lamprecht at proxmox.com>

to acutally allow to set the values requested by #2190 we need to
alter the limit a bit, as else the requested values cannot be save.

Just double it to 512, which should be really enough for this, else
go complain to your software vendor for needing such _hacks_ in the
first place..

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
(cherry picked from commit 5d004b00389661e7ce8ca5efa4a7b109559cf6cb)
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 74c201c..2d37aff 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -592,7 +592,7 @@ EODESCR
     smbios1 => {
 	description => "Specify SMBIOS type 1 fields.",
 	type => 'string', format => 'pve-qm-smbios1',
-	maxLength => 256,
+	maxLength => 512,
 	optional => 1,
     },
     protection => {
-- 
2.20.1




More information about the pve-devel mailing list