Re: [PATCH 06/13] qemu: support URI syntax for NBD

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

 



Il 11/03/2013 11:09, Osier Yang ha scritto:
>>
>> +    if (!STREQ(uri->scheme, scheme)) {
>> +        virReportError(VIR_ERR_INTERNAL_ERROR,
>> +                       _("Invalid transport/scheme '%s'"), uri->scheme);
>> +        goto error;
>> +    }
> 
> How about uri->scheme is "gluster", and scheme is "nbd"? The error
> doesn't reflect the truth then.
> 
> Except this and the coding style, all looks good.

The caller should guarantee that this does not happen.

Paolo

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]