]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: formatdomain: Document disk serial truncation status quo
authorPeter Krempa <pkrempa@redhat.com>
Fri, 4 Jun 2021 12:08:40 +0000 (14:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 7 Jun 2021 15:01:14 +0000 (17:01 +0200)
Disk serials are truncated arbitrarily and silently by qemu depending on
the device type and how they are configured. Since changing the current
state would lead to more regressions than we have now, document that the
truncation is arbitrary.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst

index c1ee9feddadce276d3a201b715098b07bce4d705..da4d93a7875d2e404354ffb7c1a0d6d2dfab64bc 100644 (file)
@@ -3146,6 +3146,16 @@ paravirtualized driver is specified via the ``disk`` element.
    may look like ``<serial>WD-WMAP9A966149</serial>``. Not supported for
    scsi-block devices, that is those using disk ``type`` 'block' using
    ``device`` 'lun' on ``bus`` 'scsi'. :since:`Since 0.7.1`
+
+   Note that depending on hypervisor and device type the serial number may be
+   truncated silently. IDE/SATA devices are commonly limited to 20 characters.
+   SCSI devices depending on hypervisor version are limited to 20, 36 or 247
+   characters.
+
+   Hypervisors may also start rejecting overly long serials instead of
+   truncating them in the future so it's advised to avoid the implicit
+   truncation by testing the desired serial length range with the desired device
+   and hypervisor combination.
 ``wwn``
    If present, this element specifies the WWN (World Wide Name) of a virtual
    hard disk or CD-ROM drive. It must be composed of 16 hexadecimal digits.