[pve-devel] applied: [PATCH qemu-server] Add unused description to drivedesc_hash

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Mar 23 18:08:12 CET 2020


On 3/17/20 1:28 PM, Fabian Ebner wrote:
> Moved code so that initialization of drivedesc_hash stays a single block.
> Avoid auto-vivication in parse_drive.
> 
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> 
> Follow-up suggested by Fabian G.
> 
> I checked the call-sites for is_valid_drivename and in most cases
> it won't benefit from including unused drives, often there is another
> branch where unused drives are treated differently.
> 
>  PVE/QemuServer.pm       |  4 ----
>  PVE/QemuServer/Drive.pm | 44 ++++++++++++++++++++++-------------------
>  2 files changed, 24 insertions(+), 24 deletions(-)
> 

applied, thanks!




More information about the pve-devel mailing list