[pve-devel] [PATCH 2/2] parse_drive : return correct format

Alexandre DERUMIER aderumier at odiso.com
Tue Apr 30 10:02:11 CEST 2013


>>Sorry, I do not really understand that. In the other mail you wrote that it would 
>>be enough to specify one single -format parameter? 

Oh, sorry, I have misreaded your previous mail (don't have sleep this night ;)
"> >>Btw, your clone patches have the feature to set the format for each 
> >>drive. Do we really need that?"

So, yes, I think 1 format is enough. (less code, less gui complexity)
Maybe if users want differents storage/format for each drive we can add this later.




>>Sure, I already saw that. I just split your patches into smaller steps. I want to test 
>>and understand each single line of that code. Hope that is OK for you? 
>>
>>I will re-create the clone_disk() later if needed. 

Yes, sure, no problem, better to do it step by step.

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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 30 Avril 2013 09:25:09 
Objet: RE: [pve-devel] [PATCH 2/2] parse_drive : return correct format 


> >>Btw, your clone patches have the feature to set the format for each 
> >>drive. Do we really need that? 
> 
> Yes, because we create the volume before using qemu-img convert. 
> 
> But we also need to specify it to qemu-img convert, as auto-detection of the 
> target volume format don't work. 
> (I have tried, creating a .qcow2 file, qemu-img convert override it with raw 
> format is no format specified) 

Sorry, I do not really understand that. In the other mail you wrote that it would 
be enough to specify one single -format parameter? 

> >>Maybe it is enough to have an extra API for that (migrate_disk)? 
> In my patches, I have a qm move api for storage migration, which reuse a 
> common clone_disk{}.(using qemu-img convert offline or drive-mirror online) 

Sure, I already saw that. I just split your patches into smaller steps. I want to test 
and understand each single line of that code. Hope that is OK for you? 

I will re-create the clone_disk() later if needed. 



More information about the pve-devel mailing list