[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail + inotify over nfs
From: |
Jim Meyering |
Subject: |
Re: tail + inotify over nfs |
Date: |
Sun, 13 Dec 2009 14:47:08 +0100 |
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.
- tail + inotify over nfs, Pádraig Brady, 2009/12/12
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/13
- Re: tail + inotify over nfs, Andreas Schwab, 2009/12/13
- Re: tail + inotify over nfs, Giuseppe Scrivano, 2009/12/13
- Re: tail + inotify over nfs,
Jim Meyering <=
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/15
- Re: tail + inotify over nfs, Giuseppe Scrivano, 2009/12/15
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/16
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/22
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/23
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/23
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/24
- Re: tail + inotify over nfs, Pádraig Brady, 2009/12/24
- Re: tail + inotify over nfs, Jim Meyering, 2009/12/26