qemu_namespace: Rename qemuDomainNamespaceUnlinkPath() to qemuNamespaceUnlinkPath()

To match how Mknod counterpart was renamed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2020-07-25 09:33:50 +02:00
parent 5c86fbb72d
commit 52fa81ac52

View File

@ -1305,7 +1305,7 @@ qemuNamespaceUnlinkHelper(pid_t pid G_GNUC_UNUSED,
static int
qemuDomainNamespaceUnlinkPaths(virDomainObjPtr vm,
qemuNamespaceUnlinkPaths(virDomainObjPtr vm,
const char **paths,
size_t npaths)
{
@ -1359,12 +1359,12 @@ qemuDomainNamespaceUnlinkPaths(virDomainObjPtr vm,
static int
qemuDomainNamespaceUnlinkPath(virDomainObjPtr vm,
qemuNamespaceUnlinkPath(virDomainObjPtr vm,
const char *path)
{
const char *paths[] = { path };
return qemuDomainNamespaceUnlinkPaths(vm, paths, 1);
return qemuNamespaceUnlinkPaths(vm, paths, 1);
}
@ -1457,12 +1457,12 @@ qemuDomainNamespaceTeardownHostdev(virDomainObjPtr vm,
if (qemuDomainGetHostdevPath(hostdev, &path, NULL) < 0)
return -1;
if (path && qemuDomainNamespaceUnlinkPath(vm, path) < 0)
if (path && qemuNamespaceUnlinkPath(vm, path) < 0)
return -1;
if (qemuHostdevNeedsVFIO(hostdev) &&
!qemuDomainNeedsVFIO(vm->def) &&
qemuDomainNamespaceUnlinkPath(vm, QEMU_DEV_VFIO) < 0)
qemuNamespaceUnlinkPath(vm, QEMU_DEV_VFIO) < 0)
return -1;
return 0;
@ -1498,7 +1498,7 @@ qemuDomainNamespaceTeardownMemory(virDomainObjPtr vm,
if (mem->model != VIR_DOMAIN_MEMORY_MODEL_NVDIMM)
return 0;
if (qemuDomainNamespaceUnlinkPath(vm, mem->nvdimmPath) < 0)
if (qemuNamespaceUnlinkPath(vm, mem->nvdimmPath) < 0)
return -1;
return 0;
@ -1538,7 +1538,7 @@ qemuDomainNamespaceTeardownChardev(virDomainObjPtr vm,
path = chr->source->data.file.path;
if (qemuDomainNamespaceUnlinkPath(vm, path) < 0)
if (qemuNamespaceUnlinkPath(vm, path) < 0)
return -1;
return 0;
@ -1584,7 +1584,7 @@ qemuDomainNamespaceTeardownRNG(virDomainObjPtr vm,
break;
}
if (path && qemuDomainNamespaceUnlinkPath(vm, path) < 0)
if (path && qemuNamespaceUnlinkPath(vm, path) < 0)
return -1;
return 0;
@ -1621,7 +1621,7 @@ qemuDomainNamespaceTeardownInput(virDomainObjPtr vm,
if (!(path = virDomainInputDefGetPath(input)))
return 0;
if (path && qemuDomainNamespaceUnlinkPath(vm, path) < 0)
if (path && qemuNamespaceUnlinkPath(vm, path) < 0)
return -1;
return 0;