[pve-devel] [PATCH] parse_drive : set default format=raw if !cdrom or no file extension

Alexandre DERUMIER aderumier at odiso.com
Wed Jun 10 07:47:42 CEST 2015


>>Wouldn't it be better to do it inside print_drive_full? 

Well,
print_drive_full already take format option from @qemu_drive_options

    foreach my $o (@qemu_drive_options) {
        next if $o eq 'bootindex';
        $opts .= ",$o=$drive->{$o}" if $drive->{$o};
    }


and format is already defined in parse_drive when it's a file with extension.

It seem the right place to do it ?



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 10 Juin 2015 06:57:03
Objet: Re: [pve-devel] [PATCH] parse_drive : set default format=raw if !cdrom or no file extension

I mean parse_drive is not really the right location to fix that bug. 
Wouldn't it be better to do it inside print_drive_full? 

> Why do we need that? 
> 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> 



More information about the pve-devel mailing list