]> git.proxmox.com Git - qemu-server.git/commitdiff
drive: product/vendor: add comment with rationale for limits
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 26 Jan 2024 10:28:32 +0000 (11:28 +0100)
committerFiona Ebner <f.ebner@proxmox.com>
Fri, 26 Jan 2024 10:28:32 +0000 (11:28 +0100)
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer/Drive.pm

index 6064bea1e0560a9a3c479a34f18c85d1e166484d..34c6e878193f9781af14bb39d136b3317d0fd423 100644 (file)
@@ -166,7 +166,7 @@ my %iothread_fmt = ( iothread => {
 my %product_fmt = (
     product => {
        type => 'string',
-       pattern => '[A-Za-z0-9\-_\s]{,16}',
+       pattern => '[A-Za-z0-9\-_\s]{,16}', # QEMU (8.1) will quietly only use 16 bytes
        format_description => 'product',
        description => "The drive's product name, up to 16 bytes long.",
        optional => 1,
@@ -176,7 +176,7 @@ my %product_fmt = (
 my %vendor_fmt = (
     vendor => {
        type => 'string',
-       pattern => '[A-Za-z0-9\-_\s]{,8}',
+       pattern => '[A-Za-z0-9\-_\s]{,8}', # QEMU (8.1) will quietly only use 8 bytes
        format_description => 'vendor',
        description => "The drive's vendor name, up to 8 bytes long.",
        optional => 1,