mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 16:15:19 +00:00
Fix error message when failing to detect filesystem
If we looped through /etc/filesystems trying to mount with each type and failed all options, we forget to actually raise an error message. * src/lxc/lxc_container.c: Raise error if unable to detect the filesystems. Also fix existing error message
This commit is contained in:
parent
878cc33a6a
commit
6828535669
@ -725,7 +725,7 @@ retry:
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Failed to bind mount directory %s to %s"),
|
_("Failed to mount device %s to %s"),
|
||||||
src, fs->dst);
|
src, fs->dst);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -746,6 +746,12 @@ retry:
|
|||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret != 0) {
|
||||||
|
virReportSystemError(ENODEV,
|
||||||
|
_("Failed to mount device %s to %s, unable to detect filesystem"),
|
||||||
|
src, fs->dst);
|
||||||
|
}
|
||||||
|
|
||||||
VIR_DEBUG("Done mounting filesystem ret=%d tryProc=%d", ret, tryProc);
|
VIR_DEBUG("Done mounting filesystem ret=%d tryProc=%d", ret, tryProc);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user