Re: [libvirt] [PATCH] Allow relative path for qemu backing file

2011-04-05 Thread Jesse J Cook
On Mon, 2011-04-04 at 16:39 -0600, Eric Blake wrote: On 03/27/2011 07:30 PM, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If a relative path is specified for the backing file, it is converted to an absolute path using the

Re: [libvirt] [PATCH] Allow relative path for qemu backing file

2011-04-05 Thread Eric Blake
On 04/05/2011 10:55 AM, Jesse J Cook wrote: +if ('/' != *(vol-backingStore.path)) { +virAsprintf(absolutePath, %s/%s, pool-def-target.path, +vol-backingStore.path); + +} else { +virAsprintf(absolutePath, %s,

Re: [libvirt] [PATCH] Allow relative path for qemu backing file

2011-04-05 Thread Jesse J Cook
On Tue, 2011-04-05 at 11:00 -0600, Eric Blake wrote: On 04/05/2011 10:55 AM, Jesse J Cook wrote: +if ('/' != *(vol-backingStore.path)) { +virAsprintf(absolutePath, %s/%s, pool-def-target.path, +vol-backingStore.path); + +} else { +

Re: [libvirt] [PATCH] Allow relative path for qemu backing file

2011-04-04 Thread Eric Blake
On 03/27/2011 07:30 PM, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If a relative path is specified for the backing file, it is converted to an absolute path using the storage pool path. The absolute path is used to verify that

[libvirt] [PATCH] Allow relative path for qemu backing file

2011-03-27 Thread Jesse Cook
This patch enables the relative backing file path support provided by qemu-img create. If a relative path is specified for the backing file, it is converted to an absolute path using the storage pool path. The absolute path is used to verify that the backing file exists. If the backing file