]> git.ipfire.org Git - thirdparty/systemd.git/commit
fs-util: introduce inotify_add_watch_and_warn() helper
authorFranck Bui <fbui@suse.com>
Tue, 17 Sep 2019 09:16:52 +0000 (11:16 +0200)
committerFranck Bui <fbui@suse.com>
Sat, 5 Oct 2019 06:08:20 +0000 (08:08 +0200)
commit27c3112dcbd1b5f171c36c32550d9c6331375b0b
tree2615b1f194118bd0726803704d12392cb32ad82a
parent5461cdebfa5e385706592253ce6261f92ce531db
fs-util: introduce inotify_add_watch_and_warn() helper

The default message for ENOSPC is very misleading: it says that the disk is
filled, but in fact the inotify watch limit is the problem.

So let's introduce and use a wrapper that simply calls inotify_add_watch(2) and
which fixes the error message up in case ENOSPC is returned.
src/basic/fs-util.c
src/basic/fs-util.h
src/core/manager.c
src/core/path.c
src/time-wait-sync/time-wait-sync.c
src/tty-ask-password-agent/tty-ask-password-agent.c