mirror of https://gitee.com/openkylin/libvirt.git
util: storage: Rename '@path' argument of virStorageSourceParseBackingURI
The name is misleading. Change it to 'uristr' so that 'path' can be reused in the proper context later. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
35966308b5
commit
4471f7704c
|
@ -2576,16 +2576,16 @@ virStorageSourceNewFromBackingRelative(virStorageSourcePtr parent,
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virStorageSourceParseBackingURI(virStorageSourcePtr src,
|
virStorageSourceParseBackingURI(virStorageSourcePtr src,
|
||||||
const char *path)
|
const char *uristr)
|
||||||
{
|
{
|
||||||
virURIPtr uri = NULL;
|
virURIPtr uri = NULL;
|
||||||
char **scheme = NULL;
|
char **scheme = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
if (!(uri = virURIParse(path))) {
|
if (!(uri = virURIParse(uristr))) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("failed to parse backing file location '%s'"),
|
_("failed to parse backing file location '%s'"),
|
||||||
path);
|
uristr);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue