Problems creating a new volume

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

 



Hi, 
I'm having troubles creating a new storage volume in c++. 
This is my code:

 
    storageVolXml = "<volume>\
      <name>" + name +".img</name>\
      <allocation>0</allocation>\
      <capacity unit=\"G\">" + hd + "</capacity>\
      <target>\
        <path>" + filePath + "</path>\
        <format type='"+ diskFormatType  + "'/>\
       </target>\
    </volume>";
storageVolPtr = virStorageVolCreateXML(pool, storageVolXml.toLatin1().data(), VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA);

I don't have any error but no file is created in the specified path (filePath).

Any suggestion?

Thanks in advance.
_______________________________________________
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