minor style and doc fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-06-13 10:43:41 +02:00
parent 94b4883904
commit 831a2fffb2
2 changed files with 10 additions and 10 deletions

View File

@ -52,14 +52,14 @@ my $PCI_RE = "[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?";
my $map_fmt = { my $map_fmt = {
node => get_standard_option('pve-node'), node => get_standard_option('pve-node'),
id =>{ id =>{
description => "The vendor and device ID that is expected. Used for". description => "The vendor and device ID that is expected. Used for"
" detecting hardware changes", ." detecting hardware changes",
type => 'string', type => 'string',
pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/,
}, },
'subsystem-id' => { 'subsystem-id' => {
description => "The subsystem vendor and device ID that is expected. Used". description => "The subsystem vendor and device ID that is expected. Used"
" for detecting hardware changes.", ." for detecting hardware changes.",
type => 'string', type => 'string',
pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/,
optional => 1, optional => 1,
@ -74,8 +74,8 @@ my $map_fmt = {
}, },
iommugroup => { iommugroup => {
type => 'integer', type => 'integer',
description => "The IOMMU group in which the device is to be expected in.". description => "The IOMMU group in which the device is to be expected in."
"Used for detecting hardware changes.", ." Used for detecting hardware changes.",
optional => 1, optional => 1,
}, },
description => { description => {

View File

@ -50,8 +50,8 @@ sub type {
my $map_fmt = { my $map_fmt = {
node => get_standard_option('pve-node'), node => get_standard_option('pve-node'),
'id' => { 'id' => {
description => "The vendor and device ID that is expected. If a USB path". description => "The vendor and device ID that is expected. If a USB path"
" is given, it is only used for detecting hardware changes", ." is given, it is only used for detecting hardware changes",
type => 'string', type => 'string',
pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/,
}, },
@ -73,11 +73,11 @@ my $defaultData = {
propertyList => { propertyList => {
id => { id => {
type => 'string', type => 'string',
description => "The ID of the logical PCI mapping.", description => "The ID of the logical USB mapping.",
format => 'pve-configid', format => 'pve-configid',
}, },
description => { description => {
description => "Description of the logical PCI device.", description => "Description of the logical USB device.",
type => 'string', type => 'string',
optional => 1, optional => 1,
maxLength => 4096, maxLength => 4096,