[pve-devel] [PATCH 06/13] forbid offline migration of a non shared volume if it's a clone

Alexandre DERUMIER aderumier at odiso.com
Thu Feb 28 08:03:56 CET 2013


Oh, Sorry, I have tested it but I think I have introduce the error when I have rebased the code.

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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Jeudi 28 Février 2013 06:40:35 
Objet: RE: [pve-devel] [PATCH 06/13] forbid offline migration of a non shared volume if it's a clone 

> + 
> + #if file, check if a backing file exist 
> + if(($scfg->{type} eq 'dir') && (!$sharedvm)){ 
> + my (undef, undef, undef, $parent) = 
> PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1); 
> + die "can't migrate '$volid' as it's a clone of '$parent'"; 

You unconditionally raise an exception here. 

I have already committed a fix for this. 



More information about the pve-devel mailing list