Re: [libvirt] Creating a storage volume for raw format file

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

 



On 05/04/2016 06:54 AM, Paul Carlton wrote:
> Hi
> 
> I'm trying to create a volume in an existing storage pool using python by
> calling createXML() on the pool object.
> If the file that is the subject of the new volume exists you get and error,
> also if it doesn't exist
> 
> I worked out that specifying
> 
> <source>
>   <path>path to copy of file</path>
> </source>
> 
>  works, seemingly by copying the 'source' file to the intended location of the
> volume file
> 
> However I am concerned about the overhead of copying the file, is there a way
> to tell it to move the file (i.e. rename)

Unfortunately there isn't any simple API to 'rename' a storage volume

- Cole

_______________________________________________
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