> >>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. _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel