Hello Pádraig,
Pádraig Brady <p...@draigbrady.com> writes: > It doesn't handle the above remount case though > as if I mount the parent dir of a file or bind mount the file itself > then there are no inotify notifications. This remounting issue is > independent of nfs anyway. So can inotify handle this or will we > have to periodically check with a select rather than a blocking read? inotify should notify it somehow, but I haven't checked to say it for sure. IMO, a good solution actually is to return from `tail_forever_inotify' as soon as a remote file appears and enter `tail_forever'. The disadvantage is that there is no way to return back to the inotify backend when the file path becomes local again, but I don't really think this scenario is going to happen often. I am also thinking of a tail refactoring and merge the poll based backend with the new inotify backend, having the possibility to handle different files with different mechanisms, it will solve the stdin problem too. I hope to have soon some time to look at it. Cheers, Giuseppe