[pve-devel] unusedX disk with size hint : : invalid format - unable to parse drive options ?

Alexandre DERUMIER aderumier at odiso.com
Tue Aug 7 15:05:47 CEST 2012


ok, so I prefer that you modify the code, I don't want to break things.


I have already done a qm rescan for all drives but not unused, I'll send you code tomorrow.




----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Mardi 7 Août 2012 14:30:41 
Objet: RE: [pve-devel] unusedX disk with size hint : : invalid format - unable to parse drive options ? 

yes, we need to extend the format of unused drives to allow a size parameter. 

This is not trivial because the current code assumes it is simply a volume id. 

> -----Original Message----- 
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel- 
> bounces at pve.proxmox.com] On Behalf Of Alexandre DERUMIER 
> Sent: Dienstag, 07. August 2012 14:27 
> To: pve-devel at pve.proxmox.com 
> Subject: [pve-devel] unusedX disk with size hint : : invalid format - unable to 
> parse drive options ? 
> 
> Hi, 
> I'm playing with unusedX disk, adding size=X hint, 
> 
> when I try to put them on virtio1 by exemple, I have an error message: 
> : invalid format - unable to parse drive options 
> 
> Is it related to 
> 
> my $unuseddesc = { 
> optional => 1, 
> type => 'string', format => 'pve-volume-id', 
> description => "Reference to unused volumes.", }; in QemuServer.pm ? 
> 
> 
> 
> 
> I also notice that when we put a disk with disk size hint in unused, the disk 
> size hint is removed. 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 





-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 




More information about the pve-devel mailing list