提交 8a57d799 编写于 作者: C Cole Robinson

uml: Report error if inotify fails on driver startup

(cherry picked from commit 7b97030a)
上级 741f0043
......@@ -500,7 +500,8 @@ umlStartup(int privileged)
if (virFileMakePath(uml_driver->monitorDir) < 0) {
char ebuf[1024];
VIR_ERROR(_("Failed to create monitor directory %s: %s"),
uml_driver->monitorDir, virStrerror(errno, ebuf, sizeof(ebuf)));
uml_driver->monitorDir,
virStrerror(errno, ebuf, sizeof(ebuf)));
goto error;
}
......@@ -508,6 +509,10 @@ umlStartup(int privileged)
if (inotify_add_watch(uml_driver->inotifyFD,
uml_driver->monitorDir,
IN_CREATE | IN_MODIFY | IN_DELETE) < 0) {
char ebuf[1024];
VIR_ERROR(_("Failed to create inotify watch on %s: %s"),
uml_driver->monitorDir,
virStrerror(errno, ebuf, sizeof(ebuf)));
goto error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册