X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Freadahead-collect.c;h=20881b3944673c4fb33b9a2ec6a34492d5e8fe43;hp=3c48a02fc9e49dc9a92c3e43d4715a0dbcbfbbe9;hb=7a2a0b907b5cc60f5d9a871997d7d6e7f62bf4d8;hpb=2b583ce6576d4a074ce6f1570b3e60b65c64ae7d diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 3c48a02fc..20881b394 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -383,6 +383,16 @@ static int collect(const char *root) { if (errno == EINTR || errno == EAGAIN) continue; + /* fanotify sometimes returns EACCES on read() + * where it shouldn't. For now let's just + * ignore it here (which is safe), but + * eventually this should be + * dropped when the kernel is fixed. + * + * https://bugzilla.redhat.com/show_bug.cgi?id=707577 */ + if (errno == EACCES) + continue; + log_error("Failed to read event: %m"); r = -errno; goto finish;