提交 68285356 编写于 作者: D Daniel P. Berrange

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
上级 878cc33a
......@@ -725,7 +725,7 @@ retry:
continue;
virReportSystemError(errno,
_("Failed to bind mount directory %s to %s"),
_("Failed to mount device %s to %s"),
src, fs->dst);
goto cleanup;
}
......@@ -746,6 +746,12 @@ 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);
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册