mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 16:45:20 +00:00
virDevMapperGetTargets: Don't ignore EBADF
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
2249455654
commit
e450ebb4c6
@ -87,7 +87,7 @@ qemuSetupImagePathCgroup(virDomainObjPtr vm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (virDevMapperGetTargets(path, &targetPaths) < 0 &&
|
if (virDevMapperGetTargets(path, &targetPaths) < 0 &&
|
||||||
errno != ENOSYS && errno != EBADF) {
|
errno != ENOSYS) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Unable to get devmapper targets for %s"),
|
_("Unable to get devmapper targets for %s"),
|
||||||
path);
|
path);
|
||||||
|
@ -10264,7 +10264,7 @@ qemuDomainSetupDisk(virQEMUDriverConfigPtr cfg G_GNUC_UNUSED,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (virDevMapperGetTargets(next->path, &targetPaths) < 0 &&
|
if (virDevMapperGetTargets(next->path, &targetPaths) < 0 &&
|
||||||
errno != ENOSYS && errno != EBADF) {
|
errno != ENOSYS) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Unable to get devmapper targets for %s"),
|
_("Unable to get devmapper targets for %s"),
|
||||||
next->path);
|
next->path);
|
||||||
@ -11328,7 +11328,7 @@ qemuDomainNamespaceSetupDisk(virDomainObjPtr vm,
|
|||||||
tmpPath = g_strdup(next->path);
|
tmpPath = g_strdup(next->path);
|
||||||
|
|
||||||
if (virDevMapperGetTargets(next->path, &targetPaths) < 0 &&
|
if (virDevMapperGetTargets(next->path, &targetPaths) < 0 &&
|
||||||
errno != ENOSYS && errno != EBADF) {
|
errno != ENOSYS) {
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Unable to get devmapper targets for %s"),
|
_("Unable to get devmapper targets for %s"),
|
||||||
next->path);
|
next->path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user