[pve-devel] [PATCH v1 qemu-server 4/9] Drive: add valid_drive_names_with_unused

Fabian Ebner f.ebner at proxmox.com
Tue Aug 3 09:35:01 CEST 2021


Am 19.07.21 um 16:52 schrieb Aaron Lauterer:
> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
> ---
>   PVE/QemuServer/Drive.pm | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm
> index 5110190..09f37c1 100644
> --- a/PVE/QemuServer/Drive.pm
> +++ b/PVE/QemuServer/Drive.pm
> @@ -393,6 +393,10 @@ sub valid_drive_names {
>               'efidisk0');
>   }
>   
> +sub valid_drive_names_with_unused {
> +    return (valid_drive_names(), map {"unused$_"} (0 .. ($MAX_UNUSED_DISKS -1)));

style nit: missing space between - and 1

> +}
> +
>   sub is_valid_drivename {
>       my $dev = shift;
>   
> 





More information about the pve-devel mailing list