[pve-devel] [PATCH v5 qemu-server 1/4] Move path_is_scsi to QemuServer/Drive.pm

Fiona Ebner f.ebner at proxmox.com
Mon Nov 20 16:56:36 CET 2023


Am 17.11.23 um 13:17 schrieb Hannes Duerr:
> diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm
> index e24ba12..dce1398 100644
> --- a/PVE/QemuServer/Drive.pm
> +++ b/PVE/QemuServer/Drive.pm

(...)

> +    my $fh = IO::File->new("+<$path") || return;

There's no "use IO::File;" yet in this module, so it should be added. I
guess it works, because of the "use PVE::Storage;", but being explicit
is always better. Perl is sadly very lax about such things.





More information about the pve-devel mailing list