From: Cole Robinson Date: Sun, 9 Dec 2012 01:40:43 +0000 (-0500) Subject: uml: Report error if inotify fails on driver startup X-Git-Tag: v0.10.2.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a57d799ca9261d16ad60daa3b8f785b679b46eb;p=thirdparty%2Flibvirt.git uml: Report error if inotify fails on driver startup (cherry picked from commit 7b97030ad430eb76fcc333652411208fb702e962) --- diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c index c341fabeb9..395aa7e847 100644 --- a/src/uml/uml_driver.c +++ b/src/uml/uml_driver.c @@ -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; }