$drivedesc_hash->{efidisk0} = $efidisk_desc;
+my $unused_fmt = {
+ volume => { alias => 'file' },
+ file => {
+ type => 'string',
+ format => 'pve-volume-id',
+ default_key => 1,
+ format_description => 'volume',
+ description => "The drive's backing volume.",
+ },
+};
+
our $unuseddesc = {
optional => 1,
- type => 'string', format => 'pve-volume-id',
+ type => 'string', format => $unused_fmt,
description => "Reference to unused volumes. This is used internally, and should not be modified manually.",
};
return undef;
}
- my $desc = $key =~ /^unused\d+$/ ? $alldrive_fmt
+ my $desc = $key =~ /^unused\d+$/ ? $unuseddesc->{format}
: $drivedesc_hash->{$key}->{format};
if (!$desc) {
warn "invalid drive key: $key\n";