mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00:00
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 (cherry picked from commit18abe7bd3e) (cherry picked from commitfe85271fb6)
This commit is contained in:
+2
-1
@@ -95,7 +95,8 @@ int path_spec_watch(PathSpec *s, Unit *u) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user