Re: get contents of a storage volume in bytes

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

 



On Sun, Jun 28, 2020 at 19:51:01 +0530, Shashwat shagun wrote:
> Hi, i have two machines with libvirt installed. I want to move a storage
> volume from the 1st machine to 2nd machine with code.
> 
> I'm thinking of reading a storage volume into a byte array/stream then
> uploading through my own/custom handler (written in go) to the 2nd
> machine's custom handler which will then be writing the byte stream to
> libvirt storage volume.
> 
> Is there a libvirt function to read storage volume into byte stream?

https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolDownload

and

https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolUpload

for the counterpart of writing a storage volume.




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

  Powered by Linux