
11 Mar
2013
11 Mar
'13
9:21 a.m.
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