mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-13 10:06:53 +07:00
readahead: explain that it is safe to ignore EACCES
This commit is contained in:
parent
3afe3725fc
commit
cf37e24688
@ -380,7 +380,17 @@ static int collect(const char *root) {
|
||||
|
||||
if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {
|
||||
|
||||
if (errno == EINTR || errno == EAGAIN || errno == EACCES)
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user