diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2017-03-29 20:29:20 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-29 20:29:20 +0100 |
commit | f1e42e218659075456c5d6a3466a138146bab28a (patch) | |
tree | cc1c54755159cdb119f20563f7d0584962bc17a9 | |
parent | 3c69a7248a2dbf533d995f279cfa62adf1ad407d (diff) | |
download | lvm2-f1e42e218659075456c5d6a3466a138146bab28a.tar.gz |
dmfilemapd: use log_sys_error in _filemap_monitor_set_notify
Since _filemap_monitor_set_notify() is only called after daemon
start up it should not use the _early_log() macros. Use
log_sys_error to log errors from the two syscalls in the function.
-rw-r--r-- | daemons/dmfilemapd/dmfilemapd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/dmfilemapd/dmfilemapd.c b/daemons/dmfilemapd/dmfilemapd.c index 3e691e88a..7939c48e1 100644 --- a/daemons/dmfilemapd/dmfilemapd.c +++ b/daemons/dmfilemapd/dmfilemapd.c @@ -409,13 +409,13 @@ static int _filemap_monitor_set_notify(struct filemap_monitor *fm) * and does not fork or exec. */ if ((inotify_fd = inotify_init1(IN_NONBLOCK)) < 0) { - _early_log("Failed to initialise inotify."); + log_sys_error("inotify_init1", "IN_NONBLOCK"); return 0; } if ((watch_fd = inotify_add_watch(inotify_fd, fm->path, IN_MODIFY | IN_DELETE_SELF)) < 0) { - _early_log("Failed to add inotify watch."); + log_sys_error("inotify_add_watch", fm->path); return 0; } fm->inotify_fd = inotify_fd; |