Thread (2 messages) 2 messages, 2 authors, 2017-04-20

Re: fanotify read returns with errno == EOPENSTALE

flat view

From: Marko Rauhamaa <hidden>
Date: 2017-04-20 12:43:28
Also in: linux-fsdevel, linux-nfs

Amir Goldstein [off-list ref]:
Sorry I messed up the previous patch. please try this one:
I will try it.
+                        * do the right thing if there are no more events to
+                        * read (i.e. return bytes read, -EAGAIN or wait).
EAGAIN is the right thing to do when FAN_NONBLOCK has been specified.
Without FAN_NONBLOCK, EAGAIN is bound to confuse the application. That
could be documented, of course.

More importantly, does EAGAIN here still guarantee EPOLLET semantics of
epoll(7)? IOW, if I get EAGAIN, I shouldn't have to try read(2)ing the
fanotify fd again before calling epoll_wait(2).


Marko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help