On 12/26/2013 04:02 PM, Wout Mertens wrote:
Workarounds I can think of:
- Augment the domain xml description so it also defines the storage pool on which the
created domain should reside
This is a good idea which I've wanted for other reasons - the qemu
driver also has instances where we are sticking large files in a
hard-coded directory (such as 'virsh managedsave') but where people have
complained that they would like to control what directory gets used for
it. Adding an element to the <domain> xml that gives the name of the
preferred virStoragePool for all operations requiring potentially large
files associated with the domain is a change worth making.
The first way seems the cleanest but is probably also the most work
and touches more code.
Maybe, but it is the right thing to do.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org