forked from pool/systemd
828fb34563
- Add upstream patches 0001-po-add-Ukrainian-translation.patch 0002-man-document-yearly-and-annually-in-systemd.time-7.patch 0003-core-nicer-message-when-inotify-watches-are-exhauste.patch - Add patch 0001-fix-only-discover-Xen-domU.patch to fix upstream patch 0004-systemd-detect-virt-only-discover-Xen-domU.patch - Check if NAME key has a value before going thru the rule (bnc#885232). Add 1051-check-if-NAME-has-a-value.patch - Add upstream patches 0001-Clear-up-confusion-wrt.-ENTRY_SIZE_MAX-and-DATA_SIZE.patch 0002-units-serial-getty-.service-use-the-default-RestartS.patch 1052-rules-uaccess-add-ID_SOFTWARE_RADIO.patch - Add upstream patches 0001-po-add-Ukrainian-translation.patch 0002-man-document-yearly-and-annually-in-systemd.time-7.patch 0003-core-nicer-message-when-inotify-watches-are-exhauste.patch - Add patch 0001-fix-only-discover-Xen-domU.patch to fix upstream patch 0004-systemd-detect-virt-only-discover-Xen-domU.patch - Check if NAME key has a value before going thru the rule (bnc#885232). Add 1051-check-if-NAME-has-a-value.patch - Add upstream patches 0001-Clear-up-confusion-wrt.-ENTRY_SIZE_MAX-and-DATA_SIZE.patch 0002-units-serial-getty-.service-use-the-default-RestartS.patch OBS-URL: https://build.opensuse.org/request/show/241318 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=193
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 18abe7bd3e13525b257da69ac49ff7841c289567 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Wed, 16 Jul 2014 22:52:53 -0400
|
|
Subject: [PATCH] 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
|
|
---
|
|
src/core/path.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git src/core/path.c src/core/path.c
|
|
index 20e454d..f54c77f 100644
|
|
--- src/core/path.c
|
|
+++ 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;
|
|
--
|
|
1.7.9.2
|
|
|