Re: Copy volume from one storage to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 08, 2018 at 08:52:43PM +0530, Shashwat shagun wrote:
> Hi,
> I want to copy a volume from one to pool to another pool through
> libvirt golang api but I’m unaware of any such functions. Can
> anybody guide me a little bit here?

The "StorageVol" interface in Go provides "Upload" and "Download" methods
that associate a "Stream" with the volumes.

So you'd call Download on the original vol, Upload on the target vol, and
read from one stream, and write to the other stream.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux