[systemd-commits] src/core
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Wed Jul 16 19:53:11 PDT 2014
src/core/path.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 18abe7bd3e13525b257da69ac49ff7841c289567
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 22:52:53 2014 -0400
core: nicer message when inotify watches are exhausted
inotify_add_watch returns ENOSPC, which translates to
"No space left on device", which is misleading.
https://bugs.freedesktop.org/show_bug.cgi?id=73628
diff --git a/src/core/path.c b/src/core/path.c
index 20e454d..f54c77f 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -99,7 +99,8 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) {
break;
}
- log_warning("Failed to add watch on %s: %m", s->path);
+ log_warning("Failed to add watch on %s: %s", s->path,
+ errno == ENOSPC ? "too many watches" : strerror(-r));
r = -errno;
if (cut)
*cut = tmp;
More information about the systemd-commits
mailing list