[libvirt] [PATCH] qemu: Don't require a block or file when looking for an alias.

Eric Blake eblake at redhat.com
Wed Apr 24 22:29:47 UTC 2013


On 04/24/2013 01:07 PM, Wido den Hollander wrote:
> Did this one get lost or forgotten?

Yep, so thanks for the ping.

> 
> Thanks,
> 
> Wido
> 
> On 04/05/2013 06:07 PM, Wido den Hollander wrote:
>> This for example prohibits you to use iotune for Ceph or Sheepdog
>> devices.
>>
>> Signed-off-by: Wido den Hollander <wido at widodh.nl>
>> ---
>>   src/qemu/qemu_driver.c |    4 ----
>>   1 file changed, 4 deletions(-)
>>
>> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
>> index 552a81b..464d30a 100644
>> --- a/src/qemu/qemu_driver.c
>> +++ b/src/qemu/qemu_driver.c
>> @@ -13032,10 +13032,6 @@ qemuDiskPathToAlias(virDomainObjPtr vm, const
>> char *path, int *idx)
>>       if (idx)
>>           *idx = i;
>>
>> -    if (disk->type != VIR_DOMAIN_DISK_TYPE_BLOCK &&
>> -        disk->type != VIR_DOMAIN_DISK_TYPE_FILE)
>> -        goto cleanup;
>> -
>>       if (disk->src) {
>>           if (virAsprintf(&ret, "drive-%s", disk->info.alias) < 0) {
>>               virReportOOMError();

Looks reasonable to me.  ACK and pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130424/714dd058/attachment-0001.sig>


More information about the libvir-list mailing list