Giuseppe Scrivano wrote:
> Hello,
>
> Jim Meyering <address@hidden> writes:
>
>> PƔdraig Brady wrote:
>>> I've just noticed that `tail -f` will not work over NFS
>>> as changes on the remote system will not go through
>>> the local VFS and so will not be noticed by inotify.
>>>
>>> So what to do? I suppose we could statfs("filename")
>>
>> Yes, I think something like that is required.
>> For even less impact, call fstatfs on the file descriptor.
>
> When this check should be done? At initialization before enter the
After any successful open when "tailing forever".
> tail_forever/tail_forever_inotify loop? In this case, shouldn't we take
> into account that the underyling FS can be changed when "tail -F" is
> used? Like:
>
> (sleep 5s; mount -F nfs server:/foo/bar /mnt/) &
> tail -F /mnt/file
Right.