wido commented on issue #2650: Ceph RBD Feature flag update
URL: https://github.com/apache/cloudstack/issues/2650#issuecomment-390113044
 
 
   I remember now :) This is leftover code from when libvirt didn't support 
cloning volumes yet.
   
   Libvirt supports cloning a RBD image: 
https://libvirt.org/git/?p=libvirt.git;a=blob;f=src/storage/storage_backend_rbd.c;h=642cacb67362424b00e905bab324dad98dd98e8e;hb=HEAD#l945
   
   We should call that function in libvirt to clone the image:
   - https://libvirt.org/sources/virshcmdref/html/sect-vol-clone.html
   - 
https://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/libvirt_application_development_guide_using_python-Storage_Pools-Cloning.html
   
   This should be supported by the libvirt Java bindings as well, so I think we 
can already do this.
   
   Now somebody just needs to write the code, that's all :)
   
   Cloning is then done by libvirt and CloudStack doesn't need to worry about 
it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to